X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/5ad94b5000b15576521af8a5efc730d57058c839..cb097b8840594b6a77aab21d0b4c20f036a7d012:/src/channel.c?ds=sidebyside diff --git a/src/channel.c b/src/channel.c index 89c271b..4dd6b82 100644 --- a/src/channel.c +++ b/src/channel.c @@ -1252,8 +1252,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) {