Commit cc1255d2 authored by louiz’'s avatar louiz’

Fix the way we check for the PING id

parent 7fe0dc26
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment