aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Ionite <[email protected]>2023-02-22 15:46:12 -0500
committerGravatar Ionite <[email protected]>2023-02-22 15:46:12 -0500
commit7e7f7c3ca1a0edeb51d741edbeffed50421a773a (patch)
tree9b41a2543f435154f33869f201f997798ca40606
parentFix file text count comparison (diff)
Fix budget lines comparison
-rw-r--r--bot/exts/utils/snekbox/_cog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/utils/snekbox/_cog.py b/bot/exts/utils/snekbox/_cog.py
index f1f0fddd7..a569541c8 100644
--- a/bot/exts/utils/snekbox/_cog.py
+++ b/bot/exts/utils/snekbox/_cog.py
@@ -406,7 +406,7 @@ class Snekbox(Cog):
msg += f"\n`{file.name}`\n{link_text}"
else:
msg += f"\n`{file.name}`\n```\n{format_text}\n```"
- budget_lines -= file_text.count("\n")
+ budget_lines -= format_text.count("\n") + 1
budget_chars -= len(file_text)
filter_cog: Filtering | None = self.bot.get_cog("Filtering")