From 3c7ae592a1abc1b32603f8bd6656d48401bedbf1 Mon Sep 17 00:00:00 2001 From: klea Date: Tue, 2 Dec 2025 17:21:17 +0100 Subject: [PATCH] warn voiced but non-opped users about !a < url --- bot/brain.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bot/brain.rb b/bot/brain.rb index ca8aa36e..e346ab0a 100644 --- a/bot/brain.rb +++ b/bot/brain.rb @@ -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