Skip to content

Commit

Permalink
Support Config.loginfilter
Browse files Browse the repository at this point in the history
Works like hostfilter, but is applied after user logs in.
  • Loading branch information
Zarel committed Jun 20, 2015
1 parent 7675b40 commit 30d7e4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion users.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 30d7e4f

Please sign in to comment.