diff --git a/cogs/gatekeep/gatekeep.py b/cogs/gatekeep/gatekeep.py index 4ae9a99109b..915c508af20 100644 --- a/cogs/gatekeep/gatekeep.py +++ b/cogs/gatekeep/gatekeep.py @@ -363,8 +363,9 @@ def check(msg: discord.Message): numWords = len(wordDict) - if numWords < 1: + if not numWords: await ctx.send("The word list is empty.") + return else: # Get confirmation before clearing the word list await ctx.send( @@ -549,8 +550,9 @@ def check(msg: discord.Message): numUsers = len(watchList) - if numUsers < 1: + if not numUsers: await ctx.send("The watch list is empty.") + return else: # Get confirmation before clearing the watch list await ctx.send(