diff --git a/src/plugins/ModActions.ts b/src/plugins/ModActions.ts index 5d421b5b..6c777811 100644 --- a/src/plugins/ModActions.ts +++ b/src/plugins/ModActions.ts @@ -1015,6 +1015,13 @@ export class ModActionsPlugin extends ZeppelinPlugin { return; } + // Make sure the user isn't already banned + const isBanned = await this.isBanned(user.id); + if (isBanned) { + this.sendErrorMessage(msg.channel, `User is already banned`); + return; + } + // The moderator who did the action is the message author or, if used, the specified --mod let mod = msg.member; if (args.mod) {