add @ prefix to op-moderated (+z) messages to distinguish them from regular channel traffic

This commit is contained in:
Mike Quin 2017-06-10 12:21:29 +00:00 committed by Ed Kellett
parent f598ba3857
commit 09bb659680
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -601,18 +601,18 @@ sendto_channel_opmod(struct Client *one, struct Client *source_p,
if(IsServer(source_p)) { if(IsServer(source_p)) {
msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings, msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings,
":%s %s %s :", ":%s %s @%s :",
source_p->name, command, chptr->chname); source_p->name, command, chptr->chname);
} else { } else {
msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings, msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings,
":%s!%s@%s %s %s :", ":%s!%s@%s %s @%s :",
source_p->name, source_p->username, source_p->name, source_p->username,
source_p->host, command, chptr->chname); source_p->host, command, chptr->chname);
} }
if (chptr->mode.mode & MODE_MODERATED) { if (chptr->mode.mode & MODE_MODERATED) {
linebuf_put_msgf(&rb_linebuf_old, &strings, linebuf_put_msgf(&rb_linebuf_old, &strings,
":%s %s %s :", ":%s %s @%s :",
use_id(source_p), command, chptr->chname, text); use_id(source_p), command, chptr->chname, text);
} else { } else {
linebuf_put_msgf(&rb_linebuf_old, &strings, linebuf_put_msgf(&rb_linebuf_old, &strings,