Skip to content

Commit

Permalink
check if room.id is in the blocked dict
Browse files Browse the repository at this point in the history
  • Loading branch information
normalhuman committed Apr 30, 2016
1 parent be5f7c1 commit 301b699
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spamhandling.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def handle_spam(title, body, poster, site, post_url, poster_url, post_id, reason
sites = specialroom["sites"]
if site in sites and reason not in specialroom["unwantedReasons"]:
room = specialroom["room"]
if time.time() >= GlobalVars.blockedTime[room.id]:
if room.id not in GlobalVars.blockedTime or time.time() >= GlobalVars.blockedTime[room.id]:
room_site = room._client.host
room_id = int(room.id)
room_pings = get_user_names_on_notification_list(room_site, room_id, site, room._client)
Expand Down

0 comments on commit 301b699

Please sign in to comment.