Commit 576fb3d1 authored by louiz’'s avatar louiz’

Correctly use the dummy channel whenever we interract with an empty-string chan

parent 7f74f62e
...@@ -59,6 +59,8 @@ void IrcClient::on_connection_close() ...@@ -59,6 +59,8 @@ void IrcClient::on_connection_close()
IrcChannel* IrcClient::get_channel(const std::string& name) IrcChannel* IrcClient::get_channel(const std::string& name)
{ {
if (name.empty())
return &this->dummy_channel;
try try
{ {
return this->channels.at(name).get(); return this->channels.at(name).get();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment