summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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();