aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar F4zii <[email protected]>2020-02-22 19:52:23 +0200
committerGravatar MarkKoz <[email protected]>2020-02-22 19:52:23 +0200
commitbff2ea57578fde3a389e286bb9254c232a0123e4 (patch)
tree0d64b27ac5f3199a2cf5ddafbbfdc6b4198784c4
parentawaited can_run Coroutine (diff)
Return False (not sent) at the end of display_tag
If the code ran to the last line of the function without returning (we return when we send a tag) It means we didn't send the tag and need to return False
-rw-r--r--bot/cogs/tags.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/tags.py b/bot/cogs/tags.py
index 5124fb5e7..e36761f85 100644
--- a/bot/cogs/tags.py
+++ b/bot/cogs/tags.py
@@ -146,7 +146,7 @@ class Tags(Cog):
title='Did you mean ...',
description='\n'.join(tag['title'] for tag in founds[:10])
))
- return True
+ return False
else:
tags = self._cache.values()