diff options
author | Florent Le Coz <louiz@louiz.org> | 2015-05-19 05:13:55 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2015-05-19 05:13:55 +0200 |
commit | 501a3f7be25f4dbb4526bf645d7df8d29f6a54a5 (patch) | |
tree | 291961ec1eb9adee5312832c8a16962014c2539a /src/bridge | |
parent | fbeb5af364db54c8a82f5ea30b83df441988ea4b (diff) | |
download | biboumi-501a3f7be25f4dbb4526bf645d7df8d29f6a54a5.tar.gz biboumi-501a3f7be25f4dbb4526bf645d7df8d29f6a54a5.tar.bz2 biboumi-501a3f7be25f4dbb4526bf645d7df8d29f6a54a5.tar.xz biboumi-501a3f7be25f4dbb4526bf645d7df8d29f6a54a5.zip |
Fix the way we we forward an XMPP ping result to the IRC server
Our CTCP notice didn't include a \01 char at the end. We thus failed to
check the PING id when we received it ourself, because one char was missing
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 ef20351..6081986 100644 --- a/src/bridge/bridge.cpp +++ b/src/bridge/bridge.cpp @@ -399,7 +399,7 @@ void Bridge::send_xmpp_version_to_irc(const Iid& iid, const std::string& name, c void Bridge::send_irc_ping_result(const Iid& iid, const std::string& id) { - this->send_private_message(iid, "\01PING "s + utils::revstr(id), "NOTICE"); + this->send_private_message(iid, "\01PING "s + utils::revstr(id) + "\01", "NOTICE"); } void Bridge::send_irc_user_ping_request(const std::string& irc_hostname, const std::string& nick, |