Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions bot/brain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def request_archive(m, target, params, depth=:inf, url_file=false)
if depth == :inf
return unless authorized?(m)
# Lock !a < FILE to ops for now: it's a very niche thing.
if url_file
return unless op?(m)
if url_file and not op?(m)
reply m, "Sorry, only channel operators may use that command."
return
end

# Allow only ops to add jobs to the queue if there are 5 or more jobs pending
Expand Down