]> jfr.im git - irc/rqf/shadowircd.git/blobdiff - src/channel.c
Don't discard self-oppings from remote override opers.
[irc/rqf/shadowircd.git] / src / channel.c
index 89c271bae8307539d607a229f09db8dda225b638..4dd6b829aa36289a1d288940fbbdfb70a213511b 100644 (file)
@@ -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)
        {