Correctly use the dummy channel whenever we interract with an empty-string chan
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user