We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cff0b37 + ec9e8f4 commit 5f113f7Copy full SHA for 5f113f7
cogs/modmail.py
@@ -1362,9 +1362,16 @@ async def contact(
1362
"""
1363
silent = False
1364
if isinstance(category, str):
1365
- if "silent" in category or "silently" in category:
+ category = category.split()
1366
+
1367
+ # just check the last element in the list
1368
+ if category[-1].lower() in ("silent", "silently"):
1369
silent = True
- category = category.strip("silently").strip("silent").strip()
1370
+ # remove the last element as we no longer need it
1371
+ category.pop()
1372
1373
+ category = " ".join(category)
1374
+ if category:
1375
try:
1376
category = await SimilarCategoryConverter().convert(
1377
ctx, category
0 commit comments