mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-08-27 19:44:50 -05:00
Fix namelocks not applying properly
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user