From fc46caf2059654d81251412a13f5db4d40803948 Mon Sep 17 00:00:00 2001 From: Marcus Eggenberger Date: Thu, 22 May 2008 14:52:04 +0000 Subject: [PATCH] Merging branches/0.2/@r849 with trunk --- src/core/ircserverhandler.cpp | 24 ++++++++++++++++++++++++ src/core/ircserverhandler.h | 4 +++- version.inc | 4 ++-- 3 files changed, 29 insertions(+), 3 deletions(-) diff --git a/src/core/ircserverhandler.cpp b/src/core/ircserverhandler.cpp index c2264ace..9bb6e1d5 100644 --- a/src/core/ircserverhandler.cpp +++ b/src/core/ircserverhandler.cpp @@ -506,6 +506,30 @@ void IrcServerHandler::handle301(const QString &prefix, const QList } } +// 305 RPL_UNAWAY +// ":You are no longer marked as being away" +void IrcServerHandler::handle305(const QString &prefix, const QList ¶ms) { + Q_UNUSED(prefix); + IrcUser *me = network()->me(); + if(me) + me->setAway(false); + + if(!params.isEmpty()) + emit displayMsg(Message::Server, BufferInfo::StatusBuffer, "", serverDecode(params[0])); +} + +// 306 RPL_NOWAWAY +// ":You have been marked as being away" +void IrcServerHandler::handle306(const QString &prefix, const QList ¶ms) { + Q_UNUSED(prefix); + IrcUser *me = network()->me(); + if(me) + me->setAway(true); + + if(!params.isEmpty()) + emit displayMsg(Message::Server, BufferInfo::StatusBuffer, "", serverDecode(params[0])); +} + /* RPL_WHOISSERVICE - " is registered nick" */ void IrcServerHandler::handle307(const QString &prefix, const QList ¶ms) { Q_UNUSED(prefix) diff --git a/src/core/ircserverhandler.h b/src/core/ircserverhandler.h index a4005e32..f58b2eac 100644 --- a/src/core/ircserverhandler.h +++ b/src/core/ircserverhandler.h @@ -51,6 +51,8 @@ public slots: void handle265(const QString &prefix, const QList ¶ms); // RPL_LOCALUSERS void handle266(const QString &prefix, const QList ¶ms); // RPL_GLOBALUSERS void handle301(const QString &prefix, const QList ¶ms); // RPL_AWAY + void handle305(const QString &prefix, const QList ¶ms); // RPL_UNAWAY + void handle306(const QString &prefix, const QList ¶ms); // RPL_NOWAWAY void handle307(const QString &prefix, const QList ¶ms); // RPL_WHOISSERVICE void handle310(const QString &prefix, const QList ¶ms); // RPL_SUSERHOST void handle311(const QString &prefix, const QList ¶ms); // RPL_WHOISUSER @@ -65,7 +67,7 @@ public slots: 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... - void handle352(const QString &prefix, const QList ¶ms); // RPL_WHOREPLY + void handle352(const QString &prefix, const QList ¶ms); // RPL_WHOREPLY void handle353(const QString &prefix, const QList ¶ms); // RPL_NAMREPLY void handle369(const QString &prefix, const QList ¶ms); // RPL_ENDOFWHOWAS void handle432(const QString &prefix, const QList ¶ms); // ERR_ERRONEUSNICKNAME diff --git a/version.inc b/version.inc index 75686b04..4dd69ac2 100644 --- a/version.inc +++ b/version.inc @@ -4,8 +4,8 @@ { using namespace Global; quasselVersion = "0.3.0-pre"; - quasselDate = "2008-05-20"; - quasselBuild = 845; + quasselDate = "2008-05-22"; + quasselBuild = 850; //! Minimum client build number the core needs clientBuildNeeded = 731; -- 2.20.1