]> 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 fb0fd35631680131922a02fa74faac34647bf8b8..4dd6b829aa36289a1d288940fbbdfb70a213511b 100644 (file)
@@ -1253,7 +1253,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))
+               if(chmode_table[i].set_func == chm_hidden && !IsOper(client_p) && IsClient(client_p))
                        continue;
                if(chptr->mode.mode & chmode_flags[i])
                        *mbuf++ = i;