[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete
From: Stefan Gehn <sgehn () gmx ! net>
Date: 2003-07-02 20:42:53
[Download RAW message or body]
CVS commit by metz:
fix for that QGDict::hashKeyString: Invalid null key message you get if no command \
is inside outgoing message
M +7 -3 kopetecommandhandler.cpp 1.23
--- kdenonbeta/kopete/libkopete/kopetecommandhandler.cpp #1.22:1.23
@@ -116,5 +116,9 @@ bool KopeteCommandHandler::processMessag
QRegExp spaces( QString::fromLatin1("\\s+") );
QString messageBody = msg.plainBody();
- QString command = messageBody.section( spaces, 0, 0).section('/',1).lower();
+ QString command = messageBody.section(spaces, 0, 0).section('/',1).lower();
+
+ if(command.isEmpty())
+ return false;
+
QString args = messageBody.section( spaces, 1 );
@@ -122,5 +127,5 @@ bool KopeteCommandHandler::processMessag
CommandList mCommands = commands( msg.from()->protocol() );
KopeteCommand *c = mCommands[ command ];
- if( c )
+ if(c)
{
kdDebug(14010) << k_funcinfo << "Handled Command" << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic