X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcore%2Fircserverhandler.cpp;h=dfb3009863cede934cbc7fc82837a9db8eda1277;hp=363b0f15cad14794c3f55d5cf40c142fcd79a4a1;hb=5ff4265bbd3a682a6d6542480760eaf4a2b85d77;hpb=ff3ed2a8ca548a5adbfac76b09608657bc68f8e4 diff --git a/src/core/ircserverhandler.cpp b/src/core/ircserverhandler.cpp index 363b0f15..dfb30098 100644 --- a/src/core/ircserverhandler.cpp +++ b/src/core/ircserverhandler.cpp @@ -405,87 +405,6 @@ void IrcServerHandler::handle324(const QString &prefix, const QList handleMode(prefix, params); } -/* RPL_INVITING - " */ -void IrcServerHandler::handle341(const QString &prefix, const QList ¶ms) { - Q_UNUSED(prefix); - if(!checkParamCount("IrcServerHandler::handle341()", params, 2)) - return; - - QString nick = serverDecode(params[0]); - - IrcChannel *channel = network()->ircChannel(serverDecode(params[1])); - if(!channel) { - qWarning() << "IrcServerHandler::handle341(): unknown channel:" << params[1]; - return; - } - - emit displayMsg(Message::Server, BufferInfo::ChannelBuffer, channel->name(), tr("%1 has been invited to %2").arg(nick).arg(channel->name())); -} - -/* RPL_WHOREPLY: " - ( "H" / "G" > ["*"] [ ( "@" / "+" ) ] : " */ -void IrcServerHandler::handle352(const QString &prefix, const QList ¶ms) { - Q_UNUSED(prefix) - if(!checkParamCount("IrcServerHandler::handle352()", params, 6)) - return; - - QString channel = serverDecode(params[0]); - IrcUser *ircuser = network()->ircUser(serverDecode(params[4])); - if(ircuser) { - ircuser->setUser(serverDecode(params[1])); - ircuser->setHost(serverDecode(params[2])); - - bool away = serverDecode(params[5]).startsWith("G") ? true : false; - ircuser->setAway(away); - ircuser->setServer(serverDecode(params[3])); - ircuser->setRealName(serverDecode(params.last()).section(" ", 1)); - } - - if(!network()->isAutoWhoInProgress(channel)) { - emit displayMsg(Message::Server, BufferInfo::StatusBuffer, "", tr("[Who] %1").arg(serverDecode(params).join(" "))); - } -} - -/* RPL_NAMREPLY */ -void IrcServerHandler::handle353(const QString &prefix, const QList ¶ms) { - Q_UNUSED(prefix); - if(!checkParamCount("IrcServerHandler::handle353()", params, 3)) - return; - - // param[0] is either "=", "*" or "@" indicating a public, private or secret channel - // we don't use this information at the time beeing - QString channelname = serverDecode(params[1]); - - IrcChannel *channel = network()->ircChannel(channelname); - if(!channel) { - qWarning() << "IrcServerHandler::handle353(): received unknown target channel:" << channelname; - return; - } - - QStringList nicks; - QStringList modes; - - foreach(QString nick, serverDecode(params[2]).split(' ')) { - QString mode = QString(); - - if(network()->prefixes().contains(nick[0])) { - mode = network()->prefixToMode(nick[0]); - nick = nick.mid(1); - } - - nicks << nick; - modes << mode; - } - - channel->joinIrcUsers(nicks, modes); -} - -/* RPL_ENDOFWHOWAS - " :End of WHOWAS" */ -void IrcServerHandler::handle369(const QString &prefix, const QList ¶ms) { - Q_UNUSED(prefix) - emit displayMsg(Message::Server, BufferInfo::StatusBuffer, "", tr("[Whowas] %1").arg(serverDecode(params).join(" "))); -} - /* ERR_ERRONEUSNICKNAME */ void IrcServerHandler::handle432(const QString &prefix, const QList ¶ms) { Q_UNUSED(prefix);