Implement PING to in-room participant

ref #2575
This commit is contained in:
Florent Le Coz
2014-11-12 08:13:02 +01:00
parent c20bdd6879
commit 4a8bcd3cbd
3 changed files with 41 additions and 1 deletions
+5
View File
@@ -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();
}
}