Fix namelocks not applying properly

This commit is contained in:
Mia
2021-03-07 19:54:02 -06:00
parent 776be29d89
commit f8cea3e4a0

View File

@@ -461,6 +461,7 @@ export const Punishments = new class {
*********************************************************/
async punish(user: User | ID, punishment: Punishment, ignoreAlts: boolean, bypassPunishmentfilter = false) {
user = Users.get(user) || user;
if (typeof user === 'string') {
return Punishments.punishName(user, punishment);
}