summaryrefslogtreecommitdiff
path: root/src/irc
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-05-27 02:30:11 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-05-27 02:30:11 +0200
commitaea923bcb99f8a7dee83202b035bc377cf835c65 (patch)
tree57adef444f5b3ab247e9838cfc71f8d089a50e44 /src/irc
parent796af0531e0f5eb5fa2b800370338ede120a867d (diff)
downloadbiboumi-aea923bcb99f8a7dee83202b035bc377cf835c65.tar.gz
biboumi-aea923bcb99f8a7dee83202b035bc377cf835c65.tar.bz2
biboumi-aea923bcb99f8a7dee83202b035bc377cf835c65.tar.xz
biboumi-aea923bcb99f8a7dee83202b035bc377cf835c65.zip
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.
Diffstat (limited to 'src/irc')
-rw-r--r--src/irc/irc_client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp
index 03402e7..1411689 100644
--- a/src/irc/irc_client.cpp
+++ b/src/irc/irc_client.cpp
@@ -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);
else
{