Fix disco for IRC servers

They should not advertise that they are MUCs since they are not.

Backport from: https://git.sr.ht/~singpolyma/biboumi/commit/764878fb0f357ec42b59b58d199fe2d5a046f998
This commit is contained in:
poVoq
2025-10-12 17:50:25 +02:00
committed by mathieui
parent 9c92f7ce4a
commit 814bb67df8
+2 -2
View File
@@ -987,10 +987,10 @@ void BiboumiComponent::send_irc_server_disco_info(const std::string& id, const s
XmlSubNode query(iq, "query"); XmlSubNode query(iq, "query");
query["xmlns"] = DISCO_INFO_NS; query["xmlns"] = DISCO_INFO_NS;
XmlSubNode identity(query, "identity"); XmlSubNode identity(query, "identity");
identity["category"] = "conference"; identity["category"] = "gateway";
identity["type"] = "irc"; identity["type"] = "irc";
identity["name"] = "IRC server " + from.local + " over Biboumi"; identity["name"] = "IRC server " + from.local + " over Biboumi";
for (const char *ns: {DISCO_INFO_NS, MUC_NS, ADHOC_NS, PING_NS, MAM_NS, VERSION_NS, STABLE_MUC_ID_NS}) for (const char *ns: {DISCO_INFO_NS, ADHOC_NS, PING_NS, VERSION_NS})
{ {
XmlSubNode feature(query, "feature"); XmlSubNode feature(query, "feature");
feature["var"] = ns; feature["var"] = ns;