removed some unnecesary code
The below if statement is always true and the value of timeout_on isn't used before a return statement.
timeout_on = False
if timeout_on == False:
This commit is contained in:
@@ -47,8 +47,6 @@ def on_dammnspam_command(sender, command, label, args):
|
|||||||
timeout_on = round(float(timeout_on), 2)
|
timeout_on = round(float(timeout_on), 2)
|
||||||
timeout_off = timeout_on
|
timeout_off = timeout_on
|
||||||
if 60 >= timeout_on <= -2 or timeout_on == 0:
|
if 60 >= timeout_on <= -2 or timeout_on == 0:
|
||||||
timeout_on = False
|
|
||||||
if timeout_on == False:
|
|
||||||
msg(sender, "&cThe timeout must be within 0-60 or -1.")
|
msg(sender, "&cThe timeout must be within 0-60 or -1.")
|
||||||
return True
|
return True
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|||||||
Reference in New Issue
Block a user