X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Feventstringifier.cpp;h=66f0e274d12e546d25653754ea28d3c45508af3a;hp=943727cde6990adc5490880730a7c512b96f81db;hb=f8ebd4fd9a59bcb34a6ce45ce1f0b4a22beae884;hpb=1cb02004ee5973b89368bd84f234d4652794690d diff --git a/src/core/eventstringifier.cpp b/src/core/eventstringifier.cpp index 943727cd..66f0e274 100644 --- a/src/core/eventstringifier.cpp +++ b/src/core/eventstringifier.cpp @@ -342,6 +342,15 @@ void EventStringifier::processIrcEventTopic(IrcEvent *e) .arg(e->nick(), e->params().at(0), e->params().at(1)), QString(), e->params().at(0)); } +void EventStringifier::processIrcEventError(IrcEvent *e) +{ + // Need an error reason + if (!checkParamCount(e, 1)) + return; + + displayMsg(e, Message::Server, tr("Error from server: ") + e->params().join("")); +} + void EventStringifier::processIrcEventWallops(IrcEvent *e) { displayMsg(e, Message::Server, tr("[Operwall] %1: %2").arg(e->nick(), e->params().join(" ")));