diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-13 15:37:56 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-13 15:37:56 +0200 |
commit | 020325dbb071f1735bceb80de9f982aefcd2de47 (patch) | |
tree | 6d87663ec9f4a31016e7b1fac662000d30c223ce /src/irc/irc_client.hpp | |
parent | 65601a96d20d4ce010723df3a059ee5a9713fae7 (diff) | |
download | biboumi-020325dbb071f1735bceb80de9f982aefcd2de47.tar.gz biboumi-020325dbb071f1735bceb80de9f982aefcd2de47.tar.bz2 biboumi-020325dbb071f1735bceb80de9f982aefcd2de47.tar.xz biboumi-020325dbb071f1735bceb80de9f982aefcd2de47.zip |
[WIP] DummyIrcChannel
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r-- | src/irc/irc_client.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index 908db8e..960d36f 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -194,6 +194,14 @@ public: * Return the number of joined channels */ size_t number_of_joined_channels() const; + /** + * Get a reference to the unique dummy channel + */ + DummyIrcChannel& get_dummy_channel(); + + const std::string& get_hostname() const { return this->hostname; } + std::string get_nick() const { return this->current_nick; } + bool is_welcomed() const { return this->welcomed; } private: /** @@ -217,12 +225,21 @@ private: */ std::unordered_map<std::string, std::unique_ptr<IrcChannel>> channels; /** + * A single channel with a iid of the form "hostname" (normal channel have + * an iid of the form "chan%hostname". + */ + DummyIrcChannel dummy_channel; + /** * A list of chan we want to join, but we need a response 001 from * the server before sending the actual JOIN commands. So we just keep the * channel names in a list, and send the JOIN commands for each of them * whenever the WELCOME message is received. */ std::vector<std::string> channels_to_join; + /** + * This flag indicates that the server is completely joined (connection + * has been established, we are authentified and we have a nick) + */ bool welcomed; /** * See http://www.irc.org/tech_docs/draft-brocklesby-irc-isupport-03.txt section 3.3 |