From 30d7e4ff681d2e8b7d54b5aafbeca5d69dd07a4c Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Fri, 19 Jun 2015 21:41:52 -0400 Subject: [PATCH] Support Config.loginfilter Works like hostfilter, but is applied after user logs in. --- users.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/users.js b/users.js index 761b18c0c7..95d1be4283 100644 --- a/users.js +++ b/users.js @@ -1025,8 +1025,9 @@ User = (function () { this.isSysop = isSysop; if (avatar) this.avatar = avatar; if (this.forceRename(name, registered)) { - Rooms.global.checkAutojoin(this); if (this.ignorePMs && this.can('lock') && !this.can('bypassall')) this.ignorePMs = false; + Rooms.global.checkAutojoin(this); + if (Config.loginfilter) Config.loginfilter(this); return true; } return false;