]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/send.c
Mention that @#chan/+#chan requires CHW capab.
[irc/rqf/shadowircd.git] / src / send.c
index c0d029d024b03bc89330733fd10b936b269902f4..0da51d36bd9369973e1a4e6fd19f3f5d04ec7b6d 100644 (file)
@@ -49,6 +49,8 @@ static void send_queued_write(rb_fde_t *F, void *data);
 
 unsigned long current_serial = 0L;
 
+struct Client *remote_rehash_oper_p;
+
 /* send_linebuf()
  *
  * inputs      - client to send to, linebuf to attach
@@ -969,6 +971,16 @@ sendto_realops_snomask(int flags, int level, const char *pattern, ...)
                                        ":%s ENCAP * SNOTE %c :%s",
                                        me.id, snobuf[1], buf);
        }
+       else if (remote_rehash_oper_p != NULL)
+       {
+               /* rather a lot of copying around, oh well -- jilles */
+               va_start(args, pattern);
+               rb_vsnprintf(buf, sizeof(buf), pattern, args);
+               va_end(args);
+               rb_linebuf_putmsg(&linebuf, pattern, NULL, 
+                               ":%s NOTICE * :*** Notice -- %s", me.name, buf);
+               sendto_one_notice(remote_rehash_oper_p, ":*** Notice -- %s", buf);
+       }
        else
        {
                va_start(args, pattern);