diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-05-11 05:31:47 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-05-11 05:31:47 +0200 |
commit | cc1255d216bf7ac6029a5dd3bc8aadae06df446b (patch) | |
tree | ec1bb2d70ac84a7a2369dea99e22714d764e1a35 /src | |
parent | 7fe0dc2667229287ab9f1825e84403a25bc863fe (diff) | |
download | biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.gz biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.bz2 biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.xz biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.zip |
Fix the way we check for the PING id
Diffstat (limited to 'src')
-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 4bfd1b2..8c364ee 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -418,7 +418,7 @@ void Bridge::send_irc_user_ping_request(const std::string& irc_hostname, const s if (message.command == "NOTICE" && utils::tolower(user.nick) == nick && message.arguments.size() >= 2 && body.substr(0, 6) == "\01PING ") { - const std::string id = body.substr(6, body.size() - 6); + const std::string id = body.substr(6, body.size() - 7); if (id != iq_id) return false; Jid jid(from_jid); |