From 2854ef9cd09a04f0f878017fc3f4e2a2bcb0b3fc Mon Sep 17 00:00:00 2001 From: HoeenHero Date: Mon, 30 Oct 2017 17:47:06 -0400 Subject: [PATCH] Fix global bans (#4098) --- users.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/users.js b/users.js index 777e989543..4581d3abb9 100644 --- a/users.js +++ b/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;