diff --git a/chat-plugins/wifi.js b/chat-plugins/wifi.js index 9222038202..eebde57072 100644 --- a/chat-plugins/wifi.js +++ b/chat-plugins/wifi.js @@ -685,7 +685,7 @@ let commands = { if (target.length > 300) { return this.errorReply("The reason is too long. It cannot exceed 300 characters."); } - if (Giveaway.checkBanned(room, targetUser)) return this.errorReply(`User '${this.targetUsername}' is already banned from entering giveaways.`); + if (Punishments.getRoomPunishType(room, this.targetUsername)) return this.errorReply(`User '${this.targetUsername}' is already punished in this room.`); Giveaway.ban(room, targetUser, target); if (room.giveaway) room.giveaway.kickUser(targetUser);