~singpolyma/biboumi

576fb3d132a11ca787f98da67889690b03c7ba8d — Florent Le Coz 8 years ago 7f74f62
Correctly use the dummy channel whenever we interract with an empty-string chan
1 files changed, 2 insertions(+), 0 deletions(-)

M src/irc/irc_client.cpp
M src/irc/irc_client.cpp => src/irc/irc_client.cpp +2 -0
@@ 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();