From f5d60bb5cdba54cfeb56ab4636eaa1fa2b761995 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 9 Sep 2020 12:06:15 -0600 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircd/chmode.c b/ircd/chmode.c index cfc38e9b..8da13bf3 100644 --- a/ircd/chmode.c +++ b/ircd/chmode.c @@ -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;