aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jesopo2021-12-07 16:36:14 +0000
committerGravatar jesopo2021-12-07 16:36:14 +0000
commit8ca4ef81fa5c35666281f8e401ee840637fd05ad (patch)
tree5fcec7a0c521aaf823c897089b304b7cd5b51612
parentsnote when an oper sets a chm_hidden mode (diff)
downloadsolanum-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.c12
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]);
}
}