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.
This commit is contained in:
Ariadne Conill 2020-09-09 12:06:15 -06:00
parent 59cfd72e68
commit f5d60bb5cd

View file

@ -1743,7 +1743,7 @@ set_channel_mode(struct Client *client_p, struct Client *source_p,
for(j = 0; j < 3; j++)
{
int send_flags = flags = flags_list[j];
const char *priv = "";
const char *priv = NULL;
if (flags == ONLY_OPERS)
{
send_flags = ALL_MEMBERS;