mirror of
https://github.com/myned/modufur.git
synced 2024-12-24 14:27:27 +00:00
Added redundant check for image position input (> 0)
This commit is contained in:
parent
82729dc6c1
commit
f96b5270c9
1 changed files with 4 additions and 4 deletions
|
@ -530,7 +530,7 @@ class MsG:
|
|||
|
||||
def on_message(msg):
|
||||
if msg.content.isdigit():
|
||||
if int(msg.content) <= len(posts) and msg.author is ctx.author and msg.channel is ctx.channel:
|
||||
if 1 <= int(msg.content) <= len(posts) and msg.author is ctx.author and msg.channel is ctx.channel:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
@ -715,7 +715,7 @@ class MsG:
|
|||
|
||||
def on_message(msg):
|
||||
if msg.content.isdigit():
|
||||
if int(msg.content) <= len(posts) and msg.author is ctx.author and msg.channel is ctx.channel:
|
||||
if 1 <= int(msg.content) <= len(posts) and msg.author is ctx.author and msg.channel is ctx.channel:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Reference in a new issue