mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
Don't unlock users who are not locked
This commit is contained in:
parent
b2e7078327
commit
128229fd0a
8
users.js
8
users.js
|
|
@ -1032,9 +1032,11 @@ function unlock(name, unlocked, noRecurse) {
|
|||
var userips = null;
|
||||
if (user) {
|
||||
if (user.userid === userid) name = user.name;
|
||||
user.locked = false;
|
||||
unlocked = unlocked || {};
|
||||
unlocked[name] = 1;
|
||||
if (user.locked) {
|
||||
user.locked = false;
|
||||
unlocked = unlocked || {};
|
||||
unlocked[name] = 1;
|
||||
}
|
||||
if (!noRecurse) userips = user.ips;
|
||||
}
|
||||
for (var ip in lockedIps) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user