repo: ngircd
action: commit
revision: 
path_from: 
revision_from: 01e40f4b55ee8b5ee5e6f32d41f53989e858f54a:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit 01e40f4b55ee8b5ee5e6f32d41f53989e858f54a
Author: Alexander Barton 
Date:   Sun Jul 25 16:44:38 2010 +0200

    Allow IRC ops to change channel modes even without OperServerMode set

diff --git a/src/ngircd/irc-mode.c b/src/ngircd/irc-mode.c
index 86a509da52e91bd1f5730b46739d885a3cfe072e..
index ..45defeb2b833f4933c24277b6fad077064b37536 100644
--- a/src/ngircd/irc-mode.c
+++ b/src/ngircd/irc-mode.c
@@ -330,7 +330,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Origin, CHANNEL *Channel)
 			}
 		}

-		if (!onchannel && !use_servermode)
+		if (!onchannel && !modeok)
 			return IRC_WriteStrClient(Origin, ERR_NOTONCHANNEL_MSG,
 				Client_ID(Origin), Channel_Name(Channel));
 	}

-----END OF PAGE-----