X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoreuserinputhandler.cpp;h=ecff7ef835cf5464fe3377b3622064e7cb65738b;hb=5e28ac5da6da023f0c9813fa77477561f687c96d;hp=a5a3d875afea09f24baec9f8eaea4cc9af955c53;hpb=17fe1c8ac710e5a56368f9255e0d9772c29b6cfe;p=quassel.git diff --git a/src/core/coreuserinputhandler.cpp b/src/core/coreuserinputhandler.cpp index a5a3d875..ecff7ef8 100644 --- a/src/core/coreuserinputhandler.cpp +++ b/src/core/coreuserinputhandler.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-09 by the Quassel Project * + * Copyright (C) 2005-10 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -29,7 +29,7 @@ #include CoreUserInputHandler::CoreUserInputHandler(CoreNetwork *parent) - : BasicHandler(parent) + : CoreBasicHandler(parent) { } @@ -128,8 +128,8 @@ void CoreUserInputHandler::handleCtcp(const BufferInfo &bufferInfo, const QStrin if(ctcpTag.isEmpty()) return; - QString message = ""; - QString verboseMessage = tr("sending CTCP-%1 request").arg(ctcpTag); + QString message = msg.section(' ', 2); + QString verboseMessage = tr("sending CTCP-%1 request to %2").arg(ctcpTag).arg(nick); if(ctcpTag == "PING") { uint now = QDateTime::currentDateTime().toTime_t(); @@ -418,7 +418,7 @@ void CoreUserInputHandler::handleWhowas(const BufferInfo &bufferInfo, const QStr void CoreUserInputHandler::defaultHandler(QString cmd, const BufferInfo &bufferInfo, const QString &msg) { Q_UNUSED(bufferInfo); - emit putCmd(serverEncode(cmd.toUpper()), serverEncode(msg)); + emit putCmd(serverEncode(cmd.toUpper()), serverEncode(msg.split(" "))); } void CoreUserInputHandler::putPrivmsg(const QByteArray &target, const QByteArray &message) {