summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixelSergey <sergey.ichtchenko@gmail.com>2016-05-31 17:09:42 +0300
committerPixelSergey <sergey.ichtchenko@gmail.com>2016-05-31 17:09:42 +0300
commit1e34a9b39bcc78bbfd43579ac2a70e19f33b679b (patch)
tree15a9901324f1afec7a5122ea2a5bb32bc376f59b
parent6f4357fad785f9e1f0c3d6d09ac9ea5ef3542f1b (diff)
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.
-rw-r--r--saylol.py4
1 files 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))):