diff options
author | psrcek <p.srcek@gmail.com> | 2016-03-26 21:56:10 +0100 |
---|---|---|
committer | psrcek <p.srcek@gmail.com> | 2016-03-26 21:56:10 +0100 |
commit | c870561f7db96d0ab010e99fdd22699a24e0630b (patch) | |
tree | 604e6c8144ab407a63c54046efb8c5bb4584aa0e | |
parent | 286f8751b5d3edcaa2e1f8c22b47f292887c979f (diff) |
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:
-rw-r--r-- | damnspam.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/damnspam.py b/damnspam.py index 6a4c2b3..af800af 100644 --- a/damnspam.py +++ b/damnspam.py @@ -47,8 +47,6 @@ def on_dammnspam_command(sender, command, label, args): timeout_on = round(float(timeout_on), 2) timeout_off = timeout_on 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.") return True except ValueError: |