diff options
author | jomo <github@jomo.tv> | 2014-07-14 05:33:46 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-07-14 05:33:46 +0200 |
commit | c51d703d1f56583a68837f450308f57ef78bb6a6 (patch) | |
tree | 131d0d4fbc09f8bddd264a1f06f12b5047fb8805 /damnspam.py | |
parent | 13b4c8c115a273c1cabcf3b3c7a9dd75ad2f6770 (diff) |
fix time check
Diffstat (limited to 'damnspam.py')
-rw-r--r-- | damnspam.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/damnspam.py b/damnspam.py index 576f00e..99ff0f6 100644 --- a/damnspam.py +++ b/damnspam.py @@ -125,7 +125,7 @@ def onInteract(event): data = inputs.get(pos_str) if data: checktime = data["timeout_on"] if powered else data["timeout_off"] - if data["last_time"] + checktime < now(): + if data["last_time"] + checktime > now(): event.setCancelled(True) plugHeader(sender, "DamnSpam") msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime)) |