diff options
| author | 2021-12-07 16:36:14 +0000 | |
|---|---|---|
| committer | 2021-12-07 16:36:14 +0000 | |
| commit | 8ca4ef81fa5c35666281f8e401ee840637fd05ad (patch) | |
| tree | 5fcec7a0c521aaf823c897089b304b7cd5b51612 | |
| parent | snote when an oper sets a chm_hidden mode (diff) | |
| download | solanum-jess/chm-hidden-snote.tar.gz solanum-jess/chm-hidden-snote.tar.bz2 solanum-jess/chm-hidden-snote.zip | |
snote if mode change requires oper priv, not just if it is hidden jess/chm-hidden-snote
| -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]); } } |
