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:
parent
59cfd72e68
commit
f5d60bb5cd
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue