fix time check

This commit is contained in:
jomo
2014-07-14 05:33:46 +02:00
parent 5cee964b9c
commit a272a615e4

View File

@@ -125,7 +125,7 @@ def onInteract(event):
data = inputs.get(pos_str) data = inputs.get(pos_str)
if data: if data:
checktime = data["timeout_on"] if powered else data["timeout_off"] 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) event.setCancelled(True)
plugHeader(sender, "DamnSpam") plugHeader(sender, "DamnSpam")
msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime)) msg(sender, "&cThis %s has a timeout of %ss." % (btype, checktime))