Commit Diff


commit - acb66d64637d33661ff4345e9bb37444109e9d11
commit + 01e40f4b55ee8b5ee5e6f32d41f53989e858f54a
blob - 86a509da52e91bd1f5730b46739d885a3cfe072e
blob + 45defeb2b833f4933c24277b6fad077064b37536
--- src/ngircd/irc-mode.c
+++ src/ngircd/irc-mode.c
@@ -330,7 +330,7 @@ Channel_Mode(CLIENT *Client, REQUEST *Req, CLIENT *Ori
 			}
 		}
 
-		if (!onchannel && !use_servermode)
+		if (!onchannel && !modeok)
 			return IRC_WriteStrClient(Origin, ERR_NOTONCHANNEL_MSG,
 				Client_ID(Origin), Channel_Name(Channel));
 	}