Don't reply to blacklisted users
This commit is contained in:
parent
b3ab5665c8
commit
cbec615108
1 changed files with 2 additions and 0 deletions
|
@ -267,6 +267,8 @@ module Ebooks
|
||||||
if blacklisted?(ev.user.screen_name)
|
if blacklisted?(ev.user.screen_name)
|
||||||
log "Blocking blacklisted user @#{ev.user.screen_name}"
|
log "Blocking blacklisted user @#{ev.user.screen_name}"
|
||||||
@twitter.block(ev.user.screen_name)
|
@twitter.block(ev.user.screen_name)
|
||||||
|
# we don't want to reply to blacklisted users, so return
|
||||||
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
# Avoid responding to duplicate tweets
|
# Avoid responding to duplicate tweets
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue