X-Git-Url: https://jfr.im/git/solanum.git/blobdiff_plain/88c48be58cbf917b634238f14d320f3b339abdeb..be29ec793d7efd234292d91231e7366b158a85ea:/ircd/channel.c diff --git a/ircd/channel.c b/ircd/channel.c index 180a4507..9bc684b4 100644 --- a/ircd/channel.c +++ b/ircd/channel.c @@ -1190,8 +1190,12 @@ channel_modes(struct Channel *chptr, struct Client *client_p) *pbuf = '\0'; for (i = 0; i < 256; i++) + { + if(chmode_table[i].set_func == chm_hidden && (!IsOper(client_p) || !IsClient(client_p))) + continue; if(chptr->mode.mode & chmode_flags[i]) *mbuf++ = i; + } if(chptr->mode.limit) {