Add auspex:cmodes

This commit is contained in:
Ed Kellett 2019-08-02 22:02:37 +01:00
parent 58a490f9a4
commit cc61cadade
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View 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;