[ADD/WIP] User unfriendly init wizard

I'll need to make it better, alongside a PL system that doesn't make
terrible decisions, like unPLing itself, or revoking someone's PL-1.
This commit is contained in:
LDA 2024-07-09 17:35:11 +02:00
commit 1035603b9f
2 changed files with 183 additions and 8 deletions

View file

@ -1150,6 +1150,8 @@ PresenceStanza(ParseeData *args, XMLElement *stanza)
}
else if (StrEquals(affiliation, "member"))
{
/* TODO: Reconsider setting the PL if a member, as there's no
* clear reason to do this in some cases. */
power_level = 0;
}
else if (StrEquals(affiliation, "outcast"))
@ -1157,7 +1159,9 @@ PresenceStanza(ParseeData *args, XMLElement *stanza)
power_level = -1;
}
/* Set the user's PL */
/* Set the user's PL
* TODO: Do NOT change the PL of *real* people nilly-willy.
* In some scenarios, this is really bad behaviour. */
if (room)
{
HashMap *powers = ASGetPL(args->config, room);