From 5da7180bfd89e8fe3ac57a84ba3a2d027bdb1715 Mon Sep 17 00:00:00 2001 From: psrcek Date: Wed, 22 Jun 2016 15:35:52 +0200 Subject: derp... integer division --- saylol.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saylol.py b/saylol.py index fce356e..0d74506 100644 --- a/saylol.py +++ b/saylol.py @@ -84,7 +84,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(math.ceil(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(math.ceil(len(lols) / float(list_limit)))))) #"\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, "") -- cgit v1.2.3