aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kraktus <[email protected]>2019-10-07 21:33:43 +0200
committerGravatar GitHub <[email protected]>2019-10-07 21:33:43 +0200
commitb94e8487c22d7c25ab09bb3d44c44d62e5a2b613 (patch)
tree737a9f18e80a7baafdb4d5092fbef995ab4f7ad4
parentminor fix (diff)
Another fix
After a new bunch of test I found bugs, and this fix resolves them
-rw-r--r--bot/cogs/bot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index 729550c1a..b8de29f2a 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -238,7 +238,7 @@ class Bot(Cog):
and len(msg.content.splitlines()) > 3
)
- if parse_codeblock and not TokenRemover.is_token_in_message(msg): # if there is no token in the code
+ if parse_codeblock and not TokenRemover.is_token_in_message(TokenRemover, msg): # if there is no token in the code
on_cooldown = (time.time() - self.channel_cooldowns.get(msg.channel.id, 0)) < 300
if not on_cooldown or DEBUG_MODE:
try: