diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:44:09 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-04-15 04:44:09 +0200 |
commit | 576fb3d132a11ca787f98da67889690b03c7ba8d (patch) | |
tree | 88ebbf7006b2e5072625023c09ff39d3698d7dca /src/irc/irc_client.cpp | |
parent | 7f74f62e56483bae6796be82d279c5180642d53b (diff) | |
download | biboumi-576fb3d132a11ca787f98da67889690b03c7ba8d.tar.gz biboumi-576fb3d132a11ca787f98da67889690b03c7ba8d.tar.bz2 biboumi-576fb3d132a11ca787f98da67889690b03c7ba8d.tar.xz biboumi-576fb3d132a11ca787f98da67889690b03c7ba8d.zip |
Correctly use the dummy channel whenever we interract with an empty-string chan
Diffstat (limited to 'src/irc/irc_client.cpp')
-rw-r--r-- | src/irc/irc_client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index e565658..7be7cc8 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -59,6 +59,8 @@ void IrcClient::on_connection_close() IrcChannel* IrcClient::get_channel(const std::string& name) { + if (name.empty()) + return &this->dummy_channel; try { return this->channels.at(name).get(); |