Fix disco for IRC servers
They should not advertise that they are MUCs since they are not
This commit is contained in:
@@ -983,10 +983,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;
|
||||||
|
|||||||
Reference in New Issue
Block a user