~singpolyma/biboumi

50a2bd736ef76f7ebb7067372d5f89b59a337bec — louiz’ 6 years ago befdefd
Answer to presences of type='probe'
1 files changed, 6 insertions(+), 0 deletions(-)

M src/xmpp/biboumi_component.cpp
M src/xmpp/biboumi_component.cpp => src/xmpp/biboumi_component.cpp +6 -0
@@ 188,6 188,12 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
            Database::delete_roster_item(to_str, from.bare());
#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())
        { // We just receive a presence from someone (as the result of a probe,
          // or a directed presence, or a normal presence change)