Fix /unlockip's interaction with namelocks (#7252)

This commit is contained in:
Annika
2020-08-26 08:19:24 -07:00
committed by GitHub
parent 3f000fced2
commit 00a12e0355

View File

@@ -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();
}
}