aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Steele Farnsworth <[email protected]>2025-01-30 23:07:40 -0500
committerGravatar Steele Farnsworth <[email protected]>2025-01-30 23:07:40 -0500
commita037cff20e2f1d4bed29cd46f613fbc9a7096ee5 (patch)
treefc0d46b13c1b011288d7fe2ce26f6a0cde6a8c9c
parentMake parenthetical await expressions their own statements. (diff)
Add newline before if statement.
-rw-r--r--bot/exts/filtering/filtering.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/filtering/filtering.py b/bot/exts/filtering/filtering.py
index b1cfa9e23..0d07bfebc 100644
--- a/bot/exts/filtering/filtering.py
+++ b/bot/exts/filtering/filtering.py
@@ -237,6 +237,7 @@ class Filtering(Cog):
await _extract_text_file_content(a)
for a in msg.attachments if "charset" in a.content_type
]
+
if text_contents:
attachment_content = "\n\n".join(text_contents)
ctx = ctx.replace(content=f"{ctx.content}\n\n{attachment_content}")