X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/143b6cc1e4a8faa8181301bf43ddafecab3237cc..b03d78803d3f31befc58ebb95984e788db481414:/src/send.c diff --git a/src/send.c b/src/send.c index c0d029d..0da51d3 100644 --- a/src/send.c +++ b/src/send.c @@ -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);