mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 19:44:50 -05:00
Fix /unlockip's interaction with namelocks (#7252)
This commit is contained in:
@@ -860,7 +860,10 @@ export const commands: ChatCommands = {
|
||||
for (const curUser of Users.findUsers([], [target])) {
|
||||
if (curUser.locked && !curUser.locked.startsWith('#') && !Punishments.getPunishType(curUser.id)) {
|
||||
curUser.locked = null;
|
||||
curUser.namelocked = null;
|
||||
if (curUser.namelocked) {
|
||||
curUser.namelocked = null;
|
||||
curUser.resetName();
|
||||
}
|
||||
curUser.updateIdentity();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user