summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpsrcek <p.srcek@gmail.com>2016-06-22 15:13:35 +0200
committerGitHub <noreply@github.com>2016-06-22 15:13:35 +0200
commit5788cd0b3e2ae37340418d8e546ea245b2d78e21 (patch)
treed0090dfdf6ae24232b6b319b0a3d237c66920036
parent00e936532a93940f41603f18adb37a9a14b268a8 (diff)
Fixed page showing 1 page too little
-rw-r--r--saylol.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/saylol.py b/saylol.py
index c5a0705..e79edf1 100644
--- a/saylol.py
+++ b/saylol.py
@@ -83,7 +83,7 @@ def on_lol_command(sender, command, label, args):
if offset > len(lols):
msg(sender, "&cNot a valid page (too high).")
return True
- msg(sender, " &9&nLol list page %s/%s" % (str(arg1 + 1), str(int(len(lols) / list_limit)))) #"\t" symbol displays weirdly, hence the 4 spaces
+ msg(sender, " &9&nLol list page %s/%s" % (str(arg1 + 1), str(int(len(lols) / list_limit) + 1))) #"\t" symbol displays weirdly, hence the 4 spaces
for i in range(offset, min(offset + list_limit, len(lols))):
msg(sender, "&a%s: &e%s" % (str(i).rjust(3), lols[i]))
msg(sender, "")