diff options
Diffstat (limited to 'ircd/chmode.c')
| -rw-r--r-- | ircd/chmode.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ircd/chmode.c b/ircd/chmode.c index 3b7cc662..0dfc91be 100644 --- a/ircd/chmode.c +++ b/ircd/chmode.c @@ -1541,9 +1541,9 @@ set_channel_mode(struct Client *client_p, struct Client *source_p, { sendto_channel_local_priv(IsServer(source_p) ? fakesource_p : source_p, send_flags, priv, chptr, "%s %s", modebuf, parabuf); - if (flags == ONLY_OPERS && IsClient(source_p)) - sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s set hidden modes on %s: %s", - get_oper_name(source_p), chptr->chname, &modebuf[mlen]); + if (priv != NULL && IsClient(source_p)) + sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s used %s to set modes on %s: %s", + get_oper_name(source_p), priv, chptr->chname, &modebuf[mlen]); } else continue; @@ -1583,9 +1583,9 @@ set_channel_mode(struct Client *client_p, struct Client *source_p, { sendto_channel_local_priv(IsServer(source_p) ? fakesource_p : source_p, send_flags, priv, chptr, "%s %s", modebuf, parabuf); - if (flags == ONLY_OPERS && IsClient(source_p)) - sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s set hidden modes on %s: %s", - get_oper_name(source_p), chptr->chname, &modebuf[mlen]); + if (priv != NULL && IsClient(source_p)) + sendto_realops_snomask(SNO_GENERAL, L_ALL, "%s used %s to set modes on %s: %s", + get_oper_name(source_p), priv, chptr->chname, &modebuf[mlen]); } } |
