Add a handler for command 396

This commit is contained in:
Nick Chambers 2021-07-18 11:43:46 -05:00
parent dd693d1127
commit ac81f2400f
1 changed files with 9 additions and 0 deletions

9
rowbot
View File

@ -458,6 +458,11 @@ on_msg_354_privmagic() {
fi
}
on_msg_396_privmagic() {
config[host]=${msg_args[1]}
log_debug "config host has been changed to %s" "${msg_args[1]}"
}
###
# irc receive handlers
###
@ -616,6 +621,10 @@ irc_on_376() {
log_debug %s "${msg_args[1]}"
}
irc_on_396() {
log_info "%s %s" "${msg_args[1]}" "${msg_args[-1]}"
}
irc_on_433() {
log_info "somebody is already using %s" "${msg_args[1]}"
}