diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-02-20 02:19:50 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-02-20 02:19:50 +0100 |
commit | 190c4ff1762e5e762e913f98033369ed75ed5291 (patch) | |
tree | 622383f469eac0904465e3ac53dd5b5ae5b1bcd5 /src/irc/irc_client.hpp | |
parent | e390b79a12a150b13570f7f0b19f50e1b0ead3a0 (diff) | |
download | biboumi-190c4ff1762e5e762e913f98033369ed75ed5291.tar.gz biboumi-190c4ff1762e5e762e913f98033369ed75ed5291.tar.bz2 biboumi-190c4ff1762e5e762e913f98033369ed75ed5291.tar.xz biboumi-190c4ff1762e5e762e913f98033369ed75ed5291.zip |
QUIT the irc server when the last channel is left
Diffstat (limited to 'src/irc/irc_client.hpp')
-rw-r--r-- | src/irc/irc_client.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/irc_client.hpp b/src/irc/irc_client.hpp index 7380a8d..5cd1403 100644 --- a/src/irc/irc_client.hpp +++ b/src/irc/irc_client.hpp @@ -101,7 +101,7 @@ public: /** * Send the QUIT irc command */ - void send_quit_command(); + void send_quit_command(const std::string& reason); /** * Send a message to the gateway user, not generated by the IRC server, * but that might be useful because we want to be verbose (for example we @@ -186,6 +186,10 @@ public: */ void on_channel_mode(const IrcMessage& message); void on_quit(const IrcMessage& message); + /** + * Return the number of joined channels + */ + size_t number_of_joined_channels() const; private: /** |