From 1e34a9b39bcc78bbfd43579ac2a70e19f33b679b Mon Sep 17 00:00:00 2001 From: PixelSergey Date: Tue, 31 May 2016 17:09:42 +0300 Subject: Fix saylol.py for dico By the way, dico, some of your line notes on the previous commit were completely wrong Once again, this has been tested I didn't clean up the code, I think it's good enough. And it works perfectly. --- saylol.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/saylol.py b/saylol.py index e031b3a..902e801 100644 --- a/saylol.py +++ b/saylol.py @@ -73,12 +73,12 @@ def on_lol_command(sender, command, label, args): if not arg1: arg1 = "1" if not arg1.isdigit() or arg1 == "0": - msg(sender, "&cUwot m8 putting invalid data here") + msg(sender, "&cInvalid argument \"%s\"" % arg1) return True arg1 = int(arg1) - 1 offset = list_limit * arg1 if offset > len(lols): - msg(sender, "&cNot enough lol to display. Please pick a smaller page number.") + msg(sender, "&cNot a valid page (too high).") return True msg(sender, " &9&nLol list page %s" % str(arg1 + 1)) #"\t" symbol displays weirdly, hence the 4 spaces for i in range(offset, min(offset + list_limit, len(lols))): -- cgit v1.2.3