]> jfr.im git - irc/freenode/solanum.git/commitdiff
Add auspex:cmodes
authorEd Kellett <redacted>
Fri, 2 Aug 2019 21:02:37 +0000 (22:02 +0100)
committerEd Kellett <redacted>
Tue, 4 Aug 2020 21:58:30 +0000 (22:58 +0100)
ircd/channel.c

index 91cf998f7cb57bb02b0d06f79203b9ec288c8034..4067dc423d2b5be7d54db7944d32f77daa3a28d7 100644 (file)
@@ -1122,7 +1122,7 @@ channel_modes(struct Channel *chptr, struct Client *client_p)
 
        for (i = 0; i < 256; i++)
        {
-               if(chmode_table[i].set_func == chm_hidden && (!IsOper(client_p) || !IsClient(client_p)))
+               if(chmode_table[i].set_func == chm_hidden && (!HasPrivilege(client_p, "auspex:cmodes") || !IsClient(client_p)))
                        continue;
                if(chptr->mode.mode & chmode_flags[i])
                        *mbuf++ = i;