Answer to presences of type='probe'

This commit is contained in:
louiz’
2017-07-16 00:16:43 +02:00
parent befdefd987
commit 50a2bd736e
+6
View File
@@ -188,6 +188,12 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
Database::delete_roster_item(to_str, from.bare()); Database::delete_roster_item(to_str, from.bare());
#endif #endif
} }
else if (type == "probe")
{
if ((iid.type == Iid::Type::Server && bridge->find_irc_client(iid.get_server())) ||
iid.type == Iid::Type::None)
this->send_presence_to_contact(to_str, from.bare(), "");
}
else if (type.empty()) else if (type.empty())
{ // We just receive a presence from someone (as the result of a probe, { // We just receive a presence from someone (as the result of a probe,
// or a directed presence, or a normal presence change) // or a directed presence, or a normal presence change)