Added max page number #47
@ -83,7 +83,7 @@ def on_lol_command(sender, command, label, args):
|
|||||||
if offset > len(lols):
|
if offset > len(lols):
|
||||||
msg(sender, "&cNot a valid page (too high).")
|
msg(sender, "&cNot a valid page (too high).")
|
||||||
return True
|
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))):
|
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, "&a%s: &e%s" % (str(i).rjust(3), lols[i]))
|
||||||
msg(sender, "")
|
msg(sender, "")
|
||||||
|
Reference in New Issue
Block a user