diff options
| author | Max Kamps <[email protected]> | 2016-10-03 00:09:56 +0200 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-10-03 00:32:12 -0400 |
| commit | 8f0d16629ff37a12f70948e008075cb4ee97480d (patch) | |
| tree | 57e455f98c8607cdf3412a0d5ff0cf6991fd35d0 | |
| parent | Update Client documentation. (diff) | |
| download | discord.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.py | 2 |
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: |