Skip to content

Commit

Permalink
Fix !!/hats
Browse files Browse the repository at this point in the history
  • Loading branch information
csnardi committed Jan 3, 2015
1 parent 957e7fc commit 73c4af0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ws.py
Expand Up @@ -417,8 +417,8 @@ def watcher(ev,wrap2):
if(content_lower.startswith("!!/hats")):
wb_end = datetime(2015, 1, 5, 0, 0, 0)
now = datetime.utcnow()
diff = wb_end - now
if (diff > 0):
if (wb_end > now):
diff = wb_end - now
hours, remainder = divmod(diff.seconds, 3600)
minutes, seconds = divmod(remainder, 60)
daystr = "days" if diff.days != 1 else "day"
Expand Down

0 comments on commit 73c4af0

Please sign in to comment.