Support Config.loginfilter

Works like hostfilter, but is applied after user logs in.
This commit is contained in:
Guangcong Luo 2015-06-19 21:41:52 -04:00
parent 7675b40c10
commit 30d7e4ff68

View File

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