aboutsummaryrefslogtreecommitdiffstats
path: root/irc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2006-06-15 14:37:05 +0200
committerWilmer van der Gaast <wilmer@gaast.net>2006-06-15 14:37:05 +0200
commit3af70b06b2f0fb0fb41a041f6d86e3711b9eea3f (patch)
tree851e0c661e14d3dae49cd060a99dc05e37e12c06 /irc.c
parent79e826a028f4b4c62c0c16e20af1fb13a9636324 (diff)
!x&y == (!x)&y, not !(x&y).
Diffstat (limited to 'irc.c')
-rw-r--r--irc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/irc.c b/irc.c
index cd30d1c2..62af4b08 100644
--- a/irc.c
+++ b/irc.c
@@ -700,7 +700,7 @@ int irc_check_login( irc_t *irc )
{
if( irc->user && irc->nick )
{
- if( global.conf->authmode == AUTHMODE_CLOSED && ! irc->status & USTATUS_AUTHORIZED )
+ if( global.conf->authmode == AUTHMODE_CLOSED && !( irc->status & USTATUS_AUTHORIZED ) )
{
irc_reply( irc, 464, ":This server is password-protected." );
return 0;
@@ -1180,7 +1180,7 @@ static gboolean irc_userping( gpointer _irc )
irc_t *irc = _irc;
int rv = 0;
- if( ! irc->status & USTATUS_LOGGED_IN )
+ if( !( irc->status & USTATUS_LOGGED_IN ) )
{
if( gettime() > ( irc->last_pong + IRC_LOGIN_TIMEOUT ) )
rv = gettime() - irc->last_pong;