aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kamps <[email protected]>2016-10-03 00:09:56 +0200
committerRapptz <[email protected]>2016-10-03 00:32:12 -0400
commit8f0d16629ff37a12f70948e008075cb4ee97480d (patch)
tree57e455f98c8607cdf3412a0d5ff0cf6991fd35d0
parentUpdate Client documentation. (diff)
downloaddiscord.py-8f0d16629ff37a12f70948e008075cb4ee97480d.tar.xz
discord.py-8f0d16629ff37a12f70948e008075cb4ee97480d.zip
[commands] Fix Paginator still allowing lines which are too long.
-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: