diff options
author | Florent Le Coz <louiz@louiz.org> | 2013-12-09 03:53:01 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2013-12-09 03:53:01 +0100 |
commit | b29290f73a24f2d5af7bde45c9ff5332c7a1f5a6 (patch) | |
tree | 355e6198080a2ad070b108cee08b8f364b2157f3 /src | |
parent | bb094e5058f0ee4b22e73b10166d0ca90fab559b (diff) | |
download | biboumi-b29290f73a24f2d5af7bde45c9ff5332c7a1f5a6.tar.gz biboumi-b29290f73a24f2d5af7bde45c9ff5332c7a1f5a6.tar.bz2 biboumi-b29290f73a24f2d5af7bde45c9ff5332c7a1f5a6.tar.xz biboumi-b29290f73a24f2d5af7bde45c9ff5332c7a1f5a6.zip |
Lowercase the chan names in two missing cases
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/irc_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/irc_client.cpp b/src/irc/irc_client.cpp index 0f29a2b..ed98653 100644 --- a/src/irc/irc_client.cpp +++ b/src/irc/irc_client.cpp @@ -224,7 +224,7 @@ void IrcClient::on_channel_message(const IrcMessage& message) const IrcUser user(message.prefix); const std::string nick = user.nick; Iid iid; - iid.chan = message.arguments[0]; + iid.chan = utils::tolower(message.arguments[0]); iid.server = this->hostname; const std::string body = message.arguments[1]; bool muc = true; @@ -388,7 +388,7 @@ void IrcClient::on_channel_mode(const IrcMessage& message) // For now, just transmit the modes so the user can know what happens // TODO, actually interprete the mode. Iid iid; - iid.chan = message.arguments[0]; + iid.chan = utils::tolower(message.arguments[0]); iid.server = this->hostname; IrcUser user(message.prefix); std::string mode_arguments; |