summaryrefslogtreecommitdiff
path: root/src/xmpp/xmpp_component.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-11-12 07:51:10 +0100
committerFlorent Le Coz <louiz@louiz.org>2014-11-12 08:13:02 +0100
commit4a8bcd3cbde0a41902999db7acc346de020cf564 (patch)
treedf2085fd195418f44ad09045e8e06ffff4bf2bdb /src/xmpp/xmpp_component.cpp
parentc20bdd68796c0fc31441ffe059a462a0d423cc77 (diff)
downloadbiboumi-4a8bcd3cbde0a41902999db7acc346de020cf564.tar.gz
biboumi-4a8bcd3cbde0a41902999db7acc346de020cf564.tar.bz2
biboumi-4a8bcd3cbde0a41902999db7acc346de020cf564.tar.xz
biboumi-4a8bcd3cbde0a41902999db7acc346de020cf564.zip
Implement PING to in-room participant
ref #2575
Diffstat (limited to 'src/xmpp/xmpp_component.cpp')
-rw-r--r--src/xmpp/xmpp_component.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index 5f76bd3..794b45b 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -563,6 +563,11 @@ void XmppComponent::handle_iq(const Stanza& stanza)
bridge->send_irc_user_ping_request(iid.get_server(),
iid.get_local(), id, from, to_str);
}
+ else if (iid.is_channel && !to.resource.empty())
+ { // Ping a room participant (we check if the nick is in the room)
+ bridge->send_irc_participant_ping_request(iid,
+ to.resource, id, from, to_str);
+ }
stanza_error.disable();
}
}