Fix global bans (#4098)

This commit is contained in:
HoeenHero
2017-10-30 17:47:06 -04:00
committed by Bär Halberkamp
parent 0b9b368d6e
commit 2854ef9cd0

View File

@@ -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;