build_msgbuf_tags(&msgbuf, source_p);
current_serial++;
+ const char *statusmsg_prefix = (ConfigChannel.opmod_send_statusmsg ? "@" : "");
if(IsServer(source_p)) {
msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings,
- ":%s %s @%s :",
- source_p->name, command, chptr->chname);
+ ":%s %s %s%s :",
+ source_p->name, command, statusmsg_prefix, chptr->chname);
} else {
msgbuf_cache_initf(&msgbuf_cache, &msgbuf, &strings,
- ":%s!%s@%s %s @%s :",
+ ":%s!%s@%s %s %s%s :",
source_p->name, source_p->username,
- source_p->host, command, chptr->chname);
+ source_p->host, command, statusmsg_prefix, chptr->chname);
}
if (chptr->mode.mode & MODE_MODERATED) {
linebuf_put_msgf(&rb_linebuf_old, &strings,
- ":%s %s @%s :",
- use_id(source_p), command, chptr->chname, text);
+ ":%s %s %s%s :",
+ use_id(source_p), command, statusmsg_prefix, chptr->chname, text);
} else {
linebuf_put_msgf(&rb_linebuf_old, &strings,
":%s NOTICE @%s :<%s:%s> ",
linebuf_put_msgf(&rb_linebuf_new, &strings,
":%s %s =%s :",
use_id(source_p), command, chptr->chname);
-
RB_DLINK_FOREACH_SAFE(ptr, next_ptr, chptr->members.head)
{
msptr = ptr->data;