/***************************************************************************
- * 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 *
#include <QRegExp>
CoreUserInputHandler::CoreUserInputHandler(CoreNetwork *parent)
- : BasicHandler(parent)
+ : CoreBasicHandler(parent)
{
}
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();
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) {