fix time check

This commit is contained in:
jomo
2014-07-14 05:33:46 +02:00
parent 13b4c8c115
commit c51d703d1f

View File

@@ -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))