Skip to content

Commit

Permalink
bot: Require +o to use !expire.
Browse files Browse the repository at this point in the history
Some people seem to think that this is meant to be used frequently as a
way to get crawls on their own schedule.  They are wrong.

[ci skip]
  • Loading branch information
hannahwhy committed Jul 25, 2015
1 parent 51b650e commit 28f3014
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bot/brain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def add_ignore_sets(m, job, names, need_authorization=true)
end

def expire(m, job)
return unless authorized?(m)
return unless authorized?(m) && op?(m)

if job.ttl < 0
reply m, "Job #{job.ident} does not yet have an expiry timer."
Expand Down

0 comments on commit 28f3014

Please sign in to comment.