[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/network/konversation/src
From:       Peter Simonsson <psn () linux ! se>
Date:       2007-02-01 0:16:07
Message-ID: 1170288967.088994.22250.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 628938 by psn:

check so that we actually found a channel


 M  +6 -1      inputfilter.cpp  


--- trunk/extragear/network/konversation/src/inputfilter.cpp #628937:628938
@@ -150,9 +150,14 @@
                 {
                     Channel* channel = server->getChannelByName( parameterList[0] );
 
+                    if(!channel) {
+                        kdError() << "Didn't find the channel " << parameterList[0] << endl;
+                        return;
+                    }
+
                     channel->appendAction(sourceNick,ctcpArgument);
 
-                    if(channel && sourceNick != server->getNickname())
+                    if(sourceNick != server->getNickname())
                     {
                         if(ctcpArgument.lower().find(QRegExp("(^|[^\\d\\w])"
                             + QRegExp::escape(server->loweredNickname())
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic