QOL updates

This commit is contained in:
zontreck 2024-11-23 05:23:02 -07:00
parent 7cb11509a1
commit ec1f894809
4 changed files with 23 additions and 9 deletions

View file

@ -118,6 +118,9 @@ class C2SLoginPacket implements IPacket {
loginReply.valid = false;
}
// Properly handle the disabled account
if (loginReply.valid && username == "_disabled") loginReply.valid = false;
if (!loginReply.valid && settings.superuser!.name != username) {
// Check for a lower level user
if (settings.inst!.admins.any((T) => T.name == username)) {