X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2Fcoresessioneventprocessor.h;h=9d5917ec96410b3015dc03326dae52c151233c9e;hb=a2e096ed11221866f9707ad61265a9d359a21de3;hp=0fd0c9e27b5145d4c37f962f6408f8f8241f4906;hpb=d3dcda30c8cbee75c0c8f500f4ab552bde513036;p=quassel.git diff --git a/src/core/coresessioneventprocessor.h b/src/core/coresessioneventprocessor.h index 0fd0c9e2..9d5917ec 100644 --- a/src/core/coresessioneventprocessor.h +++ b/src/core/coresessioneventprocessor.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 by the Quassel Project * + * Copyright (C) 2005-2016 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -50,6 +50,7 @@ public: Q_INVOKABLE void processIrcEventCap(IrcEvent *event); /// CAP framework negotiation Q_INVOKABLE void processIrcEventAccount(IrcEvent *event); /// account-notify received Q_INVOKABLE void processIrcEventAway(IrcEvent *event); /// away-notify received + Q_INVOKABLE void processIrcEventChghost(IrcEvent *event); /// chghost received Q_INVOKABLE void processIrcEventInvite(IrcEvent *event); Q_INVOKABLE void processIrcEventJoin(IrcEvent *event); Q_INVOKABLE void lateProcessIrcEventKick(IrcEvent *event); @@ -84,10 +85,12 @@ public: Q_INVOKABLE void processIrcEvent322(IrcEvent *event); // RPL_LIST Q_INVOKABLE void processIrcEvent323(IrcEvent *event); // RPL_LISTEND Q_INVOKABLE void processIrcEvent324(IrcEvent *event); // RPL_CHANNELMODEIS + Q_INVOKABLE void processIrcEvent330(IrcEvent *event); // RPL_WHOISACCOUNT (quakenet/snircd/undernet) Q_INVOKABLE void processIrcEvent331(IrcEvent *event); // RPL_NOTOPIC Q_INVOKABLE void processIrcEvent332(IrcEvent *event); // RPL_TOPIC Q_INVOKABLE void processIrcEvent352(IrcEvent *event); // RPL_WHOREPLY Q_INVOKABLE void processIrcEvent353(IrcEvent *event); // RPL_NAMREPLY + Q_INVOKABLE void processIrcEvent354(IrcEvent *event); // RPL_WHOSPCRPL Q_INVOKABLE void processIrcEvent432(IrcEventNumeric *event); // ERR_ERRONEUSNICKNAME Q_INVOKABLE void processIrcEvent433(IrcEventNumeric *event); // ERR_NICKNAMEINUSE Q_INVOKABLE void processIrcEvent437(IrcEventNumeric *event); // ERR_UNAVAILRESOURCE @@ -155,16 +158,24 @@ private: // value: the corresponding netsplit object QHash > _netsplits; - // IRCv3 capability negotiation /** - * Sends the next capability from the queue. + * Process given WHO reply information, updating user data, channel modes, etc as needed * - * During nick registration if any capabilities remain queued, this will take the next and - * request it. When no capabilities remain, capability negotiation is ended. + * This takes information from WHO and WHOX replies, processing information that's common + * between them. * - * @param[in,out] A network currently undergoing capability negotiation + * @param[in] net Network object for the IRC server + * @param[in] targetChannel Target channel, or * if unspecified + * @param[in] ircUser IrcUser representing the desired nick + * @param[in] server Nick server name + * @param[in] user Nick username + * @param[in] host Nick hostname + * @param[in] awayStateAndModes Nick away-state and modes (e.g. G@) + * @param[in] realname Nick realname */ - void sendNextCap(Network *net); + void processWhoInformation (Network *net, const QString &targetChannel, IrcUser *ircUser, + const QString &server, const QString &user, const QString &host, + const QString &awayStateAndModes, const QString &realname); };