summaryrefslogtreecommitdiff
path: root/src/xmpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2019-09-23 22:47:20 +0200
committerlouiz’ <louiz@louiz.org>2019-09-23 22:47:20 +0200
commit61757e4822a866c4741a6a96a3d36d493eb7d22a (patch)
treefb5b6d44e31a01072573ee11fd1478596bd23ad0 /src/xmpp
parentba2d961ff0f7e760124ec3e9b4aa893814c8436a (diff)
downloadbiboumi-61757e4822a866c4741a6a96a3d36d493eb7d22a.tar.gz
biboumi-61757e4822a866c4741a6a96a3d36d493eb7d22a.tar.bz2
biboumi-61757e4822a866c4741a6a96a3d36d493eb7d22a.tar.xz
biboumi-61757e4822a866c4741a6a96a3d36d493eb7d22a.zip
Mark all rooms as non-anonymous
close #3390
Diffstat (limited to 'src/xmpp')
-rw-r--r--src/xmpp/biboumi_component.cpp2
-rw-r--r--src/xmpp/xmpp_component.cpp2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp
index 700e1e7..6fe6972 100644
--- a/src/xmpp/biboumi_component.cpp
+++ b/src/xmpp/biboumi_component.cpp
@@ -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;
diff --git a/src/xmpp/xmpp_component.cpp b/src/xmpp/xmpp_component.cpp
index a16c0f5..f82f9ce 100644
--- a/src/xmpp/xmpp_component.cpp
+++ b/src/xmpp/xmpp_component.cpp
@@ -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);