From: Johannes Huber Date: Fri, 13 Aug 2010 13:08:32 +0000 (+0200) Subject: handler for RPL_WHOISACCOUNT(330), fixes #210 X-Git-Tag: 0.7-rc1~5 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=1dbf78385e2904b3a9a3de48b85381c312c74ef8 handler for RPL_WHOISACCOUNT(330), fixes #210 we handled it already in default case for numeric replies, but the output for 330 was not well formed (see bug request). --- diff --git a/src/core/ircserverhandler.cpp b/src/core/ircserverhandler.cpp index 2e15fc9d..7004e864 100644 --- a/src/core/ircserverhandler.cpp +++ b/src/core/ircserverhandler.cpp @@ -1005,6 +1005,18 @@ void IrcServerHandler::handle329(const QString &prefix, const QList emit displayMsg(Message::Server, BufferInfo::ChannelBuffer, channel, tr("Channel %1 created on %2").arg(channel, time.toString())); } +/* RPL_WHOISACCOUNT: " :is authed as */ +void IrcServerHandler::handle330(const QString &prefix, const QList ¶ms) { + Q_UNUSED(prefix); + if(!checkParamCount("IrcServerHandler::handle330()", params, 3)) + return; + + QString nick = serverDecode(params[0]); + QString account = serverDecode(params[1]); + + emit displayMsg(Message::Server, BufferInfo::StatusBuffer, "", tr("[Whois] %1 is authed as %2").arg(nick).arg(account)); +} + /* RPL_NOTOPIC */ void IrcServerHandler::handle331(const QString &prefix, const QList ¶ms) { Q_UNUSED(prefix); diff --git a/src/core/ircserverhandler.h b/src/core/ircserverhandler.h index 30f2d1d6..2f9623cb 100644 --- a/src/core/ircserverhandler.h +++ b/src/core/ircserverhandler.h @@ -73,6 +73,7 @@ public slots: void handle324(const QString &prefix, const QList ¶ms); // RPL_CHANNELMODEIS void handle328(const QString &prefix, const QList ¶ms); // RPL_??? (channel homepage) void handle329(const QString &prefix, const QList ¶ms); // RPL_??? (channel creation time) + void handle330(const QString &prefix, const QList ¶ms); // RPL_WHOISACCOUNT (quakenet/snircd/undernet) void handle331(const QString &prefix, const QList ¶ms); // RPL_NOTOPIC void handle332(const QString &prefix, const QList ¶ms); // RPL_TOPIC void handle333(const QString &prefix, const QList ¶ms); // Topic set by...