X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=core%2Fserver.cpp;fp=core%2Fserver.cpp;h=45c9da1acddfafde051f07012fd1f1716c76831c;hp=494cb970ff0ebd9490d66bc1b13003af03358cfa;hb=60bce4937bf006ceae27d012908b644a87865302;hpb=f8e388d65b8a1745c54035f1e871f195fdaca6f6 diff --git a/core/server.cpp b/core/server.cpp index 494cb970..45c9da1a 100644 --- a/core/server.cpp +++ b/core/server.cpp @@ -162,18 +162,18 @@ void Server::handleServerMsg(QString msg) { QString prefix; QString cmd; QStringList params; - + // check for prefix by checking for a colon as the first char if(msg[0] == ':') { msg.remove(0,1); prefix = msg.section(' ', 0, 0); msg = msg.section(' ', 1); } - + // next string without a whitespace is the command cmd = msg.section(' ', 0, 0).toUpper(); msg = msg.mid(cmd.length()); - + // get the parameters QString trailing = ""; if(msg.contains(" :")) { @@ -193,7 +193,7 @@ void Server::handleServerMsg(QString msg) { Q_ASSERT(params.count() > 0); // Violation to RFC params.removeFirst(); } - + // Now we try to find a handler for this message. BTW, I do love the Trolltech guys ;-) QString hname = cmd.toLower(); hname[0] = hname[0].toUpper();