X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fctcphandler.cpp;h=aab7cd174d521dff336fdaa57f1a82857de5b29a;hp=2b606f6ba833241db0e69d7d2164b6ca4e3db9f0;hb=513c0edce6f4c69f16e6a00c144877e8d5940096;hpb=ac374ec32612798c230d54665f6bce7faf416602 diff --git a/src/core/ctcphandler.cpp b/src/core/ctcphandler.cpp index 2b606f6b..aab7cd17 100644 --- a/src/core/ctcphandler.cpp +++ b/src/core/ctcphandler.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 * @@ -26,7 +26,7 @@ #include "coreignorelistmanager.h" CtcpHandler::CtcpHandler(CoreNetwork *parent) - : BasicHandler(parent), + : CoreBasicHandler(parent), XDELIM("\001"), _ignoreListManager(parent->ignoreListManager()) { @@ -218,9 +218,11 @@ void CtcpHandler::handleVersion(CtcpType ctcptype, const QString &prefix, const void CtcpHandler::defaultHandler(const QString &cmd, CtcpType ctcptype, const QString &prefix, const QString &target, const QString ¶m) { Q_UNUSED(ctcptype); Q_UNUSED(target); - Q_UNUSED(param); if(!_ignoreListManager->ctcpMatch(prefix, network()->networkName())) { - emit displayMsg(Message::Error, BufferInfo::StatusBuffer, "", tr("Received unknown CTCP %1 by %2").arg(cmd).arg(prefix)); + QString str = tr("Received unknown CTCP %1 by %2").arg(cmd).arg(prefix); + if(!param.isEmpty()) + str.append(tr(" with arguments: %1").arg(param)); + emit displayMsg(Message::Error, BufferInfo::StatusBuffer, "", str); } }