diff options
author | Florent Le Coz <louiz@louiz.org> | 2014-11-12 08:10:46 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2014-11-12 08:14:56 +0100 |
commit | 12eeb4d11eee5b8e6514f0ce8bf7508cc2d6d7a1 (patch) | |
tree | 386b8579941d2452ac956e7644da161af6942980 /src/xmpp | |
parent | 80789c2e927e90b025f26951ed1bbbde25d5eb0f (diff) | |
download | biboumi-12eeb4d11eee5b8e6514f0ce8bf7508cc2d6d7a1.tar.gz biboumi-12eeb4d11eee5b8e6514f0ce8bf7508cc2d6d7a1.tar.bz2 biboumi-12eeb4d11eee5b8e6514f0ce8bf7508cc2d6d7a1.tar.xz biboumi-12eeb4d11eee5b8e6514f0ce8bf7508cc2d6d7a1.zip |
Implement the PING on a server or the gateway itself
fix #2575
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/xmpp_component.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp index 516b932..5a5aed4 100644 --- a/src/xmpp/xmpp_component.cpp +++ b/src/xmpp/xmpp_component.cpp @@ -568,6 +568,11 @@ void XmppComponent::handle_iq(const Stanza& stanza) bridge->send_irc_participant_ping_request(iid, to.resource, id, from, to_str); } + else + { // Ping a channel, a server or the gateway itself + bridge->on_gateway_ping(iid.get_server(), + id, from, to_str); + } stanza_error.disable(); } } |