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

This commit is contained in:
Florent Le Coz
2014-04-15 04:44:09 +02:00
parent 7f74f62e56
commit 576fb3d132
+2
View File
@@ -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();