Respect nolog requests
This commit is contained in:
parent
3a824f6d44
commit
457292c609
1 changed files with 12 additions and 1 deletions
13
rowbot
13
rowbot
|
@ -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
|
||||
###
|
||||
|
|
Loading…
Reference in a new issue