mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Merge pull request #1603 from sirDonovan/away
Unblock PMs on rename for global staff
This commit is contained in:
commit
9f72d076a7
2
users.js
2
users.js
|
|
@ -988,6 +988,7 @@ User = (function () {
|
|||
user.isSysop = isSysop;
|
||||
user.forceRenamed = false;
|
||||
if (avatar) user.avatar = avatar;
|
||||
if (user.ignorePMs && user.can('lock') && !user.can('bypassall')) user.ignorePMs = false;
|
||||
|
||||
user.authenticated = authenticated;
|
||||
|
||||
|
|
@ -1012,6 +1013,7 @@ User = (function () {
|
|||
this.isStaff = (this.group in {'%':1, '@':1, '&':1, '~':1});
|
||||
this.isSysop = isSysop;
|
||||
if (avatar) this.avatar = avatar;
|
||||
if (this.ignorePMs && this.can('lock') && !this.can('bypassall')) this.ignorePMs = false;
|
||||
if (this.forceRename(name, authenticated)) {
|
||||
Rooms.global.checkAutojoin(this);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user