]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc-mode.c
Mode setting: only check channel user modes when on channel
[ngircd-alex.git] / src / ngircd / irc-mode.c
index 32219975f5ea23a389fcc368551104e331226155..a63a0f411bc95a4320fa2bc9a47ff84d176bcc49 100644 (file)
@@ -550,7 +550,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel)
                if (arg_arg >= Req->argc)
                        arg_arg = -1;
 
-               if(!is_machine) {
+               if(!is_machine && !is_oper) {
                        o_mode_ptr = Channel_UserModes(Channel, Client);
                        while( *o_mode_ptr ) {
                                if ( *o_mode_ptr == 'q')