summaryrefslogtreecommitdiff
path: root/src/irc/irc_client.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-04-15 04:44:09 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-04-15 04:44:09 +0200
commit576fb3d132a11ca787f98da67889690b03c7ba8d (patch)
tree88ebbf7006b2e5072625023c09ff39d3698d7dca /src/irc/irc_client.cpp
parent7f74f62e56483bae6796be82d279c5180642d53b (diff)
downloadbiboumi-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.cpp2
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();