about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2012-10-29 11:44:45 +0100
committerAlexander Barton <alex@barton.de>2012-10-29 11:44:45 +0100
commit30b32e84fe352f7c39ceca1a9c6df60ca50e83ab (patch)
tree4a5570f4fcf5c42f2980e50c89b5ae65111bdfd8
parentfb924933765238808feb05fb7178402058026897 (diff)
downloadngircd-30b32e84fe352f7c39ceca1a9c6df60ca50e83ab.tar.gz
ngircd-30b32e84fe352f7c39ceca1a9c6df60ca50e83ab.zip
Fix warning message introduced when cleaning up IRC_SERVER()
This reverts a not intentional code change and fixes the following compiler
warning message (tested with gcc 4.4.5):

 irc-server.c: In function "IRC_SERVER":
 irc-server.c:142: warning: suggest parentheses around operand of "!"
                            or change "&" to "&&" or "!" to "~"
-rw-r--r--src/ngircd/irc-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/irc-server.c b/src/ngircd/irc-server.c
index 02e3ae82..a587c52f 100644
--- a/src/ngircd/irc-server.c
+++ b/src/ngircd/irc-server.c
@@ -139,7 +139,7 @@ IRC_SERVER( CLIENT *Client, REQUEST *Req )
 		if (Client_Type(Client) == CLIENT_GOTPASS) {
 			/* We got a "simple" PASS command, so the peer is
 			 * using the protocol as defined in RFC 1459. */
-			if (!Conn_Options(Client_Conn(Client)) & CONN_RFC1459)
+			if (! (Conn_Options(Client_Conn(Client)) & CONN_RFC1459))
 				Log(LOG_INFO,
 				    "Switching connection %d (\"%s\") to RFC 1459 compatibility mode.",
 				    Client_Conn(Client), Client_ID(Client));