Commit aea923bc authored by louiz’'s avatar louiz’
Browse files

Use the CHANTYPES values to differentiate channel or user notices

It also happens to fix #2517 because this used to create buggy channels
named "auth" and stuf like that.
parent 796af053
......@@ -245,7 +245,7 @@ void IrcClient::on_notice(const IrcMessage& message)
const std::string to = message.arguments[0];
const std::string body = message.arguments[1];
if (to == this->current_nick)
if (!to.empty() && this->chantypes.find(to[0]) == this->chantypes.end())
this->bridge->send_xmpp_message(this->hostname, from, body);
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