Respect nolog requests

This commit is contained in:
Nick Chambers 2021-07-12 00:35:06 -05:00 committed by Nick Chambers
parent 3a824f6d44
commit 457292c609
1 changed files with 12 additions and 1 deletions

13
rowbot
View File

@ -95,7 +95,7 @@ run_callbacks() {
(( status |= $? ))
done < <(compgen -A function "$filter")
return 0
return "$status"
}
url() {
@ -672,6 +672,17 @@ on_init_limeometer() {
plugin_reg uplime limeometer
}
# nonlogger
on_msg_PRIVMSG_nolog() {
if [[ ${msg_words[0]} = *nolog* ]]; then
log_info "this message was redacted"
return 1
else
return 0
fi
}
###
# irc send handlers
###