diff options
author | louiz’ <louiz@louiz.org> | 2016-10-03 21:35:16 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2016-10-03 21:35:16 +0200 |
commit | 28f1dd76548fc9a7de3920d938903f68cdfffe0d (patch) | |
tree | 3c340ad1f8ecb71223c8edf448b086e1b77d1f2c /src/bridge | |
parent | 45aebb8d8a3088058ae65b154496ce1fb2e3d94d (diff) | |
download | biboumi-28f1dd76548fc9a7de3920d938903f68cdfffe0d.tar.gz biboumi-28f1dd76548fc9a7de3920d938903f68cdfffe0d.tar.bz2 biboumi-28f1dd76548fc9a7de3920d938903f68cdfffe0d.tar.xz biboumi-28f1dd76548fc9a7de3920d938903f68cdfffe0d.zip |
Make version requests work with global user JIDs as well
fix #3210
Diffstat (limited to 'src/bridge')
-rw-r--r-- | src/bridge/bridge.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp index 65171a9..7724ba7 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -713,7 +713,7 @@ void Bridge::send_irc_version_request(const std::string& irc_hostname, const std if (irc_hostname != hostname) return false; IrcUser user(message.prefix); - if (message.command == "NOTICE" && user.nick == target && + if (message.command == "NOTICE" && utils::tolower(user.nick) == utils::tolower(target) && message.arguments.size() >= 2 && message.arguments[1].substr(0, 9) == "\01VERSION ") { // remove the "\01VERSION " and the "\01" parts from the string |