From c870561f7db96d0ab010e99fdd22699a24e0630b Mon Sep 17 00:00:00 2001 From: psrcek Date: Sat, 26 Mar 2016 21:56:10 +0100 Subject: 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: --- damnspam.py | 2 -- 1 file changed, 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: -- cgit v1.2.3