X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Feventstringifier.cpp;h=a7238b277d0dbb39d1eb7b4e90f6e76aea3611ce;hp=9135d485000ba471f2c033a5f330d51e40347711;hb=3ec6f311bb4fff1540a01c26069300ad17f6d134;hpb=ff3ed2a8ca548a5adbfac76b09608657bc68f8e4 diff --git a/src/core/eventstringifier.cpp b/src/core/eventstringifier.cpp index 9135d485..a7238b27 100644 --- a/src/core/eventstringifier.cpp +++ b/src/core/eventstringifier.cpp @@ -105,11 +105,11 @@ void EventStringifier::processIrcEventNumeric(IrcEventNumeric *e) { } // Ignore these commands. - case 321: case 366: case 376: + case 321: case 353: case 366: case 376: break; // CAP stuff - case 903: case 904: case 905: case 906: case 907: + case 900: case 903: case 904: case 905: case 906: case 907: { displayMsg(e, Message::Info, "CAP: " + e->params().join("")); break; @@ -404,6 +404,41 @@ void EventStringifier::processIrcEvent333(IrcEvent *e) { .arg(e->params()[1], QDateTime::fromTime_t(e->params()[2].toInt()).toString()), QString(), channel); } +/* RPL_INVITING - " */ +void EventStringifier::processIrcEvent341(IrcEvent *e) { + if(!checkParamCount(e, 2)) + return; + + QString channel = e->params()[1]; + displayMsg(e, Message::Server, tr("%1 has been invited to %2").arg(e->params().first(), channel), QString(), channel); +} + +/* RPL_WHOREPLY: " + ( "H" / "G" > ["*"] [ ( "@" / "+" ) ] : " */ +void EventStringifier::processIrcEvent352(IrcEvent *e) { + displayMsg(e, Message::Server, tr("[Who] %1").arg(e->params().join(" "))); +} + +/* RPL_ENDOFWHOWAS - " :End of WHOWAS" */ +void EventStringifier::processIrcEvent369(IrcEvent *e) { + displayMsg(e, Message::Server, tr("End of /WHOWAS")); +} + +/* ERR_ERRONEUSNICKNAME */ +void EventStringifier::processIrcEvent432(IrcEvent *e) { + displayMsg(e, Message::Error, tr("Nick %1 contains illegal characters").arg(e->params()[0])); +} + +/* ERR_NICKNAMEINUSE */ +void EventStringifier::processIrcEvent433(IrcEvent *e) { + displayMsg(e, Message::Error, tr("Nick already in use: %1").arg(e->params()[0])); +} + +/* ERR_UNAVAILRESOURCE */ +void EventStringifier::processIrcEvent437(IrcEvent *e) { + displayMsg(e, Message::Error, tr("Nick/channel is temporarily unavailable: %1").arg(e->params()[0])); +} + // template /*