Add support for ACCEPTing the owner

This commit is contained in:
Nick Chambers 2021-07-19 18:06:24 -05:00
parent 281021bd47
commit db6df1ea90
1 changed files with 9 additions and 0 deletions

9
rowbot
View File

@ -692,10 +692,18 @@ irc_on_473() {
log_error "%s: %s" "${msg_args[1]}" "${msg_args[2]}"
}
irc_on_718() {
log_info "%s %s" "${msg_args[1]}" "${msg_args[-1]}"
}
###
# irc send handlers
###
irc_accept() {
net_send "ACCEPT $1"
}
irc_join() {
local chans
printf -v chans %s, "$@"
@ -1053,6 +1061,7 @@ on_register_mode_getter() {
fi
irc_mode "${config[modes]}"
irc_accept "${config[owner]}"
}
###