[FIX] Log out some MUC information

This commit is contained in:
lda 2025-02-07 18:52:58 +00:00
commit c2536c2e84

View file

@ -44,6 +44,7 @@ XMPPQueryMUC(XMPPComponent *jabber, char *muc, MUCInfo *out)
Free(uuid); Free(uuid);
if (!iq_query || !StrEquals(iq_query->name, "iq")) if (!iq_query || !StrEquals(iq_query->name, "iq"))
{ {
Log(LOG_ERR, "Didn't receive an <iq> stanza");
XMLFreeElement(iq_query); XMLFreeElement(iq_query);
return false; return false;
} }
@ -55,6 +56,11 @@ XMPPQueryMUC(XMPPComponent *jabber, char *muc, MUCInfo *out)
"conference")) "conference"))
{ {
XMLFreeElement(iq_query); XMLFreeElement(iq_query);
Log(LOG_DEBUG, "MUC INFO ERROR");
Log(LOG_DEBUG,
"identityp=%p category=%s", identity,
identity ? HashMapGet(identity->attrs, "category") : NULL
);
return false; return false;
} }