From e2cd27bef31dfeef4ca59152c947b873045bae4c Mon Sep 17 00:00:00 2001 From: Szymon Tomasz Stefanek Date: Tue, 17 Aug 2010 03:24:18 +0000 Subject: Fix an undetected syntax error in tmphighlight. git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@4889 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/tmphighlight/libkvitmphighlight.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules') diff --git a/src/modules/tmphighlight/libkvitmphighlight.cpp b/src/modules/tmphighlight/libkvitmphighlight.cpp index 3c86498df..e61119f0b 100644 --- a/src/modules/tmphighlight/libkvitmphighlight.cpp +++ b/src/modules/tmphighlight/libkvitmphighlight.cpp @@ -57,7 +57,7 @@ static bool tmphighlight_kvs_cmd_addnick(KviKvsModuleCommandCall * c) if( !c->window()->console() )return c->context()->errorNoIrcContext(); if( c->window()->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!c->window()->type() == KVI_WINDOW_TYPE_CHANNEL) + if(c->window()->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; @@ -95,7 +95,7 @@ static bool tmphighlight_kvs_cmd_removenick(KviKvsModuleCommandCall * c) if( !c->window()->console() )return c->context()->errorNoIrcContext(); if( c->window()->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!c->window()->type() == KVI_WINDOW_TYPE_CHANNEL) + if(c->window()->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; @@ -148,7 +148,7 @@ static bool tmphighlight_kvs_cmd_addchannel(KviKvsModuleCommandCall * c) if( !pWnd->console() )return c->context()->errorNoIrcContext(); if( pWnd->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!pWnd->type() == KVI_WINDOW_TYPE_CHANNEL) + if(pWnd->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; @@ -200,7 +200,7 @@ static bool tmphighlight_kvs_cmd_removechannel(KviKvsModuleCommandCall * c) if( !pWnd->console() )return c->context()->errorNoIrcContext(); if( pWnd->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!pWnd->type() == KVI_WINDOW_TYPE_CHANNEL) + if(pWnd->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; @@ -238,7 +238,7 @@ static bool tmphighlight_kvs_fnc_isnickhighlighted(KviKvsModuleFunctionCall * c) if( !c->window()->console() )return c->context()->errorNoIrcContext(); if( c->window()->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!c->window()->type() == KVI_WINDOW_TYPE_CHANNEL) + if(c->window()->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; @@ -288,7 +288,7 @@ static bool tmphighlight_kvs_fnc_ischannelhighlighted(KviKvsModuleFunctionCall * if( !pWnd->console() )return c->context()->errorNoIrcContext(); if( pWnd->console()->isNotConnected() )return c->context()->errorNoIrcContext(); - if(!pWnd->type() == KVI_WINDOW_TYPE_CHANNEL) + if(pWnd->type() != KVI_WINDOW_TYPE_CHANNEL) { c->warning(__tr2qs("Current window is not a channel")); return false; -- cgit v1.3.1-10-gc9f91