summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-05-11 05:31:47 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-05-11 05:31:47 +0200
commitcc1255d216bf7ac6029a5dd3bc8aadae06df446b (patch)
treeec1bb2d70ac84a7a2369dea99e22714d764e1a35
parent7fe0dc2667229287ab9f1825e84403a25bc863fe (diff)
downloadbiboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.gz
biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.bz2
biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.tar.xz
biboumi-cc1255d216bf7ac6029a5dd3bc8aadae06df446b.zip
Fix the way we check for the PING id
-rw-r--r--src/bridge/bridge.cpp2
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);