diff options
author | jomo <github@jomo.tv> | 2014-07-14 05:32:14 +0200 |
---|---|---|
committer | jomo <github@jomo.tv> | 2014-07-14 05:32:14 +0200 |
commit | 13b4c8c115a273c1cabcf3b3c7a9dd75ad2f6770 (patch) | |
tree | c6768b1dbea148699bb4bf816f479c83510f5e85 /damnspam.py | |
parent | 7dc4d6a88c0f08236cc7b7b87c55d964c2d9b458 (diff) |
fix plugHeader, store last time
Diffstat (limited to 'damnspam.py')
-rw-r--r-- | damnspam.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/damnspam.py b/damnspam.py index a86dc97..576f00e 100644 --- a/damnspam.py +++ b/damnspam.py @@ -127,5 +127,7 @@ def onInteract(event): checktime = data["timeout_on"] if powered else data["timeout_off"] if data["last_time"] + checktime < now(): event.setCancelled(True) - plugHeader("DamnSpam") - msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime))
\ No newline at end of file + plugHeader(sender, "DamnSpam") + msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime)) + else: + inputs["last_time"] = int(now())
\ No newline at end of file |