aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--discord/ext/commands/formatter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py
index af45602f..5faa65ab 100644
--- a/discord/ext/commands/formatter.py
+++ b/discord/ext/commands/formatter.py
@@ -89,7 +89,7 @@ class Paginator:
RuntimeError
The line was too big for the current :attr:`max_size`.
"""
- if len(line) >= self.max_size:
+ if len(line) > self.max_size - len(self.prefix) - 2:
raise RuntimeError('Line exceeds maximum page size %s' % (self.max_size))
if self._count + len(line) + 1 > self.max_size: