diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:56:50 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:56:50 +0200 |
commit | 5739d418e2b35dfc038fe1a12f8b5c7eeeed6868 (patch) | |
tree | e428fe413cf62850cb4dcda00bf1d753843177b6 /src/irc/irc_channel.cpp | |
parent | 0d9c1ba31336f137202471841fd4fc7ca78a5c11 (diff) | |
download | biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.gz biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.bz2 biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.tar.xz biboumi-5739d418e2b35dfc038fe1a12f8b5c7eeeed6868.zip |
Better way to leave the dummy room
Diffstat (limited to 'src/irc/irc_channel.cpp')
-rw-r--r-- | src/irc/irc_channel.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/irc/irc_channel.cpp b/src/irc/irc_channel.cpp index 0604528..7b0e766 100644 --- a/src/irc/irc_channel.cpp +++ b/src/irc/irc_channel.cpp @@ -48,6 +48,12 @@ void IrcChannel::remove_user(const IrcUser* user) } } +void IrcChannel::remove_all_users() +{ + this->users.clear(); + this->self.reset(); +} + DummyIrcChannel::DummyIrcChannel(): IrcChannel(), joining(false) |