+void EventStringifier::processIrcEvent330(IrcEvent *e)
+{
+ if (e->params().count() < 3)
+ return;
+
+ // check for whois or whowas
+ if (_whois) {
+ displayMsg(e, Message::Server, tr("[Whois] %1 is authed as %2").arg(e->params()[0], e->params()[1]));
+ }
+ else {
+ displayMsg(e, Message::Server, tr("[Whowas] %1 was authed as %2").arg(e->params()[0], e->params()[1]));
+ }
+}
+
+
+/* RPL_NOTOPIC */
+void EventStringifier::processIrcEvent331(IrcEvent *e)
+{
+ QString channel = e->params().first();
+ displayMsg(e, Message::Topic, tr("No topic is set for %1.").arg(channel), QString(), channel);
+}
+
+
+/* RPL_TOPIC */
+void EventStringifier::processIrcEvent332(IrcEvent *e)
+{
+ QString channel = e->params().first();
+ displayMsg(e, Message::Topic, tr("Topic for %1 is \"%2\"").arg(channel, e->params()[1]), QString(), channel);
+}
+
+
+/* Topic set by... */
+void EventStringifier::processIrcEvent333(IrcEvent *e)
+{
+ if (!checkParamCount(e, 3))
+ return;
+
+ QString channel = e->params().first();
+ QDateTime topicSetTime = QDateTime::fromTime_t(e->params()[2].toInt()).toUTC();
+ displayMsg(e, Message::Topic, tr("Topic set by %1 on %2")
+ .arg(e->params()[1],
+ topicSetTime.toString("yyyy-MM-dd hh:mm:ss UTC")), QString(), channel);
+}
+
+
+/* RPL_INVITING - "<nick> <channel>*/
+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: "<channel> <user> <host> <server> <nick>
+ ( "H" / "G" > ["*"] [ ( "@" / "+" ) ] :<hopcount> <real name>" */
+void EventStringifier::processIrcEvent352(IrcEvent *e)
+{
+ displayMsg(e, Message::Server, tr("[Who] %1").arg(e->params().join(" ")));
+}
+
+
+/* RPL_ENDOFWHOWAS - "<nick> :End of WHOWAS" */
+void EventStringifier::processIrcEvent369(IrcEvent *e)
+{
+ displayMsg(e, Message::Server, tr("End of /WHOWAS"));
+}
+
+
+/* ERR_ERRONEUSNICKNAME */
+void EventStringifier::processIrcEvent432(IrcEvent *e)
+{
+ if (!checkParamCount(e, 1))
+ return;
+
+ displayMsg(e, Message::Error, tr("Nick %1 contains illegal characters").arg(e->params()[0]));
+}
+
+
+/* ERR_NICKNAMEINUSE */
+void EventStringifier::processIrcEvent433(IrcEvent *e)
+{
+ if (!checkParamCount(e, 1))
+ return;
+
+ displayMsg(e, Message::Error, tr("Nick already in use: %1").arg(e->params()[0]));
+}
+
+
+/* ERR_UNAVAILRESOURCE */
+void EventStringifier::processIrcEvent437(IrcEvent *e)
+{
+ if (!checkParamCount(e, 1))
+ return;