~singpolyma/biboumi

61757e4822a866c4741a6a96a3d36d493eb7d22a — louiz’ 3 years ago ba2d961
Mark all rooms as non-anonymous

close #3390
2 files changed, 3 insertions(+), 1 deletions(-)

M src/xmpp/biboumi_component.cpp
M src/xmpp/xmpp_component.cpp
M src/xmpp/biboumi_component.cpp => src/xmpp/biboumi_component.cpp +1 -1
@@ 997,7 997,7 @@ void BiboumiComponent::send_irc_channel_disco_info(const std::string& id, const 
    identity["category"] = "conference";
    identity["type"] = "irc";
    identity["name"] = ""s + iid.get_local() + " on " + iid.get_server();
    for (const char *ns: {DISCO_INFO_NS, MUC_NS, ADHOC_NS, PING_NS, MAM_NS, VERSION_NS, STABLE_MUC_ID_NS, SELF_PING_FLAG})
    for (const char *ns: {DISCO_INFO_NS, MUC_NS, ADHOC_NS, PING_NS, MAM_NS, VERSION_NS, STABLE_MUC_ID_NS, SELF_PING_FLAG, "muc_nonanonymous"})
      {
        XmlSubNode feature(query, "feature");
        feature["var"] = ns;

M src/xmpp/xmpp_component.cpp => src/xmpp/xmpp_component.cpp +2 -0
@@ 344,6 344,8 @@ void XmppComponent::send_user_join(const std::string& from,
        status_self["code"] = "110";
        XmlSubNode status_nick_modified(x, "status");
        status_nick_modified["code"] = "210";
        XmlSubNode status_nonanonymous(x, "status");
        status_nonanonymous["code"] = "100";
      }
  }
  this->send_stanza(presence);