Skip to content

Commit

Permalink
Add non_tavern_sites
Browse files Browse the repository at this point in the history
Don't report Stack Overflow reports to the Tavern -- the SO CVR can
handle those.
  • Loading branch information
csnardi committed Jan 17, 2016
1 parent ee2dc42 commit 2086bdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions globalvars.py
Expand Up @@ -36,6 +36,7 @@ class GlobalVars:
"Offensive body detected",
"Email in answer",
"Email in title"]
non_tavern_sites = ["stackoverflow.com"]

parser = HTMLParser.HTMLParser()
wrap = Client("stackexchange.com")
Expand Down
2 changes: 1 addition & 1 deletion spamhandling.py
Expand Up @@ -111,7 +111,7 @@ def handle_spam(title, body, poster, site, post_url, poster_url, post_id, reason
chq_pings = get_user_names_on_notification_list("stackexchange.com", GlobalVars.charcoal_room_id, site, GlobalVars.wrap)
chq_msg = append_pings(s, chq_pings)
GlobalVars.charcoal_hq.send_message(chq_msg if len(chq_msg) <= 500 else s)
if reason not in GlobalVars.non_tavern_reasons:
if reason not in GlobalVars.non_tavern_reasons and site not in GlobalVars.non_tavern_sites:
tavern_pings = get_user_names_on_notification_list("meta.stackexchange.com", GlobalVars.meta_tavern_room_id, site, GlobalVars.wrapm)
tavern_msg = append_pings(s, tavern_pings)
GlobalVars.tavern_on_the_meta.send_message(tavern_msg if len(tavern_msg) <= 500 else s)
Expand Down

0 comments on commit 2086bdb

Please sign in to comment.