Only report incidents when a control panel command is used
This commit is contained in:
parent
51c6890053
commit
8613280aa5
7
rowbot
7
rowbot
|
@ -713,8 +713,11 @@ hook_cmd_sysroot() {
|
||||||
|
|
||||||
hook_cmd_control_panel() {
|
hook_cmd_control_panel() {
|
||||||
if [[ $from != "$owner" && $dev != yes ]]; then
|
if [[ $from != "$owner" && $dev != yes ]]; then
|
||||||
privmsg "$to" "$from is not in the sudoers file. This incident will be reported."
|
if [[ $action = @(raw|join|reload|level|dev|dev\?|trigger|cycle|dev) ]]; then
|
||||||
info "security breach from %s in sector %s" "$from" "$to"
|
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
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue