mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 11:34:40 -05:00
Fix global bans (#4098)
This commit is contained in:
committed by
Bär Halberkamp
parent
0b9b368d6e
commit
2854ef9cd0
4
users.js
4
users.js
@@ -792,6 +792,10 @@ class User {
|
||||
}
|
||||
if (this.named) user.prevNames[this.userid] = this.name;
|
||||
this.destroy();
|
||||
|
||||
if (user.named) Punishments.checkName(user, registered);
|
||||
if (user.namelocked) user.named = true;
|
||||
|
||||
Rooms.global.checkAutojoin(user);
|
||||
if (Config.loginfilter) Config.loginfilter(user, this, userType);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user