]> jfr.im git - irc/freenode/solanum.git/commit
chmode: use NULL for priv argument when auspex:cmodes priv is not needed
authorAriadne Conill <redacted>
Wed, 9 Sep 2020 18:06:15 +0000 (12:06 -0600)
committerAriadne Conill <redacted>
Wed, 9 Sep 2020 18:10:11 +0000 (12:10 -0600)
commitf5d60bb5cdba54cfeb56ab4636eaa1fa2b761995
tree3278397e2425c9726be36df9f3a074f7af512b42
parent59cfd72e68e7b41c134eb066f1537abf7f57e024
chmode: use NULL for priv argument when auspex:cmodes priv is not needed

Otherwise, sendto_channel_local_priv() will only distribute mode changes
to opers only.  This is because HasPrivilege(target_p, "") will evaluate
as false due to the target not being opered.

Thanks to Devin Brown for bisecting this issue.
ircd/chmode.c