mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-09 04:23:45 -05:00
Support Config.loginfilter
Works like hostfilter, but is applied after user logs in.
This commit is contained in:
parent
7675b40c10
commit
30d7e4ff68
3
users.js
3
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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user