QOL updates
This commit is contained in:
parent
7cb11509a1
commit
ec1f894809
4 changed files with 23 additions and 9 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue