Skip to content

Commit

Permalink
notify CHQ of blocks/unblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Jan 1, 2016
1 parent c973450 commit 79db302
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chatcommunicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,10 +427,12 @@ def handle_commands(content_lower, message_parts, ev_room, ev_room_name, ev_user
GlobalVars.blockedTime = time.time() + timeToBlock
else:
GlobalVars.blockedTime = time.time() + 900
GlobalVars.charcoal_hq.send_message("Reports blocked for {} seconds.".format(GlobalVars.blockedTime - time.time()))
return "blocked"
if content_lower.startswith("!!/unblock"):
if is_privileged(ev_room, ev_user_id, wrap2):
GlobalVars.blockedTime = time.time()
GlobalVars.charcoal_hq.send_message("Reports unblocked.")
return "unblocked"
if content_lower.startswith("!!/errorlogs"):
if is_privileged(ev_room, ev_user_id, wrap2):
Expand Down

0 comments on commit 79db302

Please sign in to comment.