[ADD/WIP] Continue MUCwerk

oh man this is gonna be painful to do... xmpp is fine iff youre doing
DMs isnt it?
This commit is contained in:
LDA 2024-06-21 00:48:27 +02:00
commit d3b7f2fee0
19 changed files with 707 additions and 44 deletions

View file

@ -110,3 +110,24 @@ XMLFreeElement(XMLElement *element)
Free(element);
}
XMLElement *
XMLookForUnique(XMLElement *parent, char *tag)
{
size_t i;
if (!parent || !tag)
{
return NULL;
}
for (i = 0; i < ArraySize(parent->children); i++)
{
XMLElement *child = ArrayGet(parent->children, i);
if (StrEquals(child->name, tag))
{
return child;
}
}
return NULL;
}