mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 01:55:16 +00:00
[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:
parent
d449c8097e
commit
1035603b9f
2 changed files with 183 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue