From 8613280aa59974c57175922d7637590dee6c287e Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Mon, 21 Jun 2021 12:35:09 -0500 Subject: [PATCH] Only report incidents when a control panel command is used --- rowbot | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rowbot b/rowbot index 9feff6d..57685f4 100755 --- a/rowbot +++ b/rowbot @@ -713,8 +713,11 @@ hook_cmd_sysroot() { hook_cmd_control_panel() { if [[ $from != "$owner" && $dev != yes ]]; then - privmsg "$to" "$from is not in the sudoers file. This incident will be reported." - info "security breach from %s in sector %s" "$from" "$to" + if [[ $action = @(raw|join|reload|level|dev|dev\?|trigger|cycle|dev) ]]; then + privmsg "$to" "$from is not in the sudoers file. This incident will be reported." + info "security breach from %s in sector %s" "$from" "$to" + fi + return 0 fi