]> jfr.im git - solanum.git/blobdiff - ircd/channel.c
ircd: import hidden channel modes framework, from ircd-seven
[solanum.git] / ircd / channel.c
index 180a45070920611e20f2248a031c7cffe05b822c..9bc684b4a69a5424132f94b3b7b1a2b6a6522900 100644 (file)
@@ -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)
        {