From 8f0d16629ff37a12f70948e008075cb4ee97480d Mon Sep 17 00:00:00 2001 From: Max Kamps Date: Mon, 3 Oct 2016 00:09:56 +0200 Subject: [PATCH] [commands] Fix Paginator still allowing lines which are too long. --- discord/ext/commands/formatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/formatter.py b/discord/ext/commands/formatter.py index af45602fe..5faa65ab1 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: