{ "autochanmodes", CF_QSTRING, conf_set_channel_autochanmodes, 0, NULL },
{ "displayed_usercount", CF_INT, NULL, 0, &ConfigChannel.displayed_usercount },
{ "strip_topic_colors", CF_YESNO, NULL, 0, &ConfigChannel.strip_topic_colors },
+ { "opmod_send_statusmsg", CF_YESNO, NULL, 0, &ConfigChannel.opmod_send_statusmsg },
{ "\0", 0, NULL, 0, NULL }
};
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;
&ConfigChannel.resv_forcepart,
"Force-part local users on channel RESV"
},
+ {
+ "opmod_send_statusmsg",
+ OUTPUT_BOOLEAN_YN,
+ &ConfigChannel.opmod_send_statusmsg,
+ "Send messages to @#channel if affected by +z"
+ },
{
"disable_hidden",
OUTPUT_BOOLEAN_YN,