aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2021-01-26 08:33:15 +0000
committerGitHub <noreply@github.com>2021-01-26 08:33:15 +0000
commitedf15ed1f0774956e15c504244b8a83a650bb084 (patch)
treed3ff6be78ee2d6d7b7109eb24db08c28a0f04547 /cogs
parentfe1cc5e149143bd78b6107ffe3f78fb369f4a64f (diff)
downloadsteve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar.gz
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar.bz2
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar.lz
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar.xz
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.tar.zst
steve-bot-edf15ed1f0774956e15c504244b8a83a650bb084.zip
Check the eqn not the message
Diffstat (limited to 'cogs')
-rwxr-xr-xcogs/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cogs/utils.py b/cogs/utils.py
index 32ef23b..6ec510c 100755
--- a/cogs/utils.py
+++ b/cogs/utils.py
@@ -560,7 +560,7 @@ class Utils(commands.Cog):
@commands.command(aliases=["calc"])
async def math(self, ctx, *, eqn: str):
- if '"' in ctx.message or "print" in ctx.message:
+ if '"' in eqn or "print" in eqn:
return
try:
# Allow for proper absolute value notation