about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2011-04-29 23:15:05 +0200
committerFlorian Westphal <fw@strlen.de>2011-04-29 23:27:56 +0200
commit05748aa5eeaf75438a0bb238967667605fe4d52e (patch)
tree725caf8c244c90b3c51e83606b9bd7a6b8b85988
parent0bb892bb5fe1f0d9d783808d211c039e11e12f3b (diff)
downloadngircd-05748aa5eeaf75438a0bb238967667605fe4d52e.tar.gz
ngircd-05748aa5eeaf75438a0bb238967667605fe4d52e.zip
parse: fix logical expression testing for non RFC1459 links
parse.c:284: warning: suggest parentheses around operand of '!' or
change '&' to '&&' or '!' to '~'

The expression looks dubious, this should probably be
an if-not-set, then... test.
-rw-r--r--src/ngircd/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c
index d7dbffc2..c2603918 100644
--- a/src/ngircd/parse.c
+++ b/src/ngircd/parse.c
@@ -280,7 +280,7 @@ Validate_Prefix( CONN_ID Idx, REQUEST *Req, bool *Closed )
 	assert( client != NULL );
 
 	if (!Req->prefix && Client_Type(client) == CLIENT_SERVER
-	    && !Conn_Options(Idx) & CONN_RFC1459
+	    && !(Conn_Options(Idx) & CONN_RFC1459)
 	    && strcasecmp(Req->command, "ERROR") != 0
 	    && strcasecmp(Req->command, "PING") != 0)
 	{