[commands] check if prefix is None in .pages

This commit is contained in:
StarrFox
2019-12-17 00:12:42 -05:00
committed by Rapptz
parent bcbfc354cf
commit e79ccf3f4c
+1 -1
View File
@@ -157,7 +157,7 @@ class Paginator:
def pages(self):
"""Returns the rendered list of pages."""
# we have more than just the prefix in our current page
if len(self._current_page) > 1:
if len(self._current_page) > (0 if self.prefix is None else 1):
self.close_page()
return self._pages