Ensure the quit message is as last as possible

This commit is contained in:
Nick Chambers 2021-11-22 02:28:27 -06:00
parent 07c7a3c536
commit 03249b19f5
1 changed files with 8 additions and 8 deletions

16
rowbot
View File

@ -545,12 +545,6 @@ on_sys_exit_999_log() {
# bootup/shutdown sequence
###
on_sys_init_010_bootup() {
DEFAULT=${USER:-uplime} state_resolve owner
DEFAULT=\` state_resolve trigger
DEFAULT=yes state_resolve dev
}
on_sys_first_010_bootup() {
log_info "rowbot's pid is %d" "$$"
}
@ -565,7 +559,7 @@ on_sys_after_005_bootup() {
get_assoc_array config
}
on_sys_exit_999_bootup() {
on_exit_zzz_bootup() {
log_info "There's a lot of beauty in ordinary things. Isn't that kind of the point?"
}
@ -720,6 +714,12 @@ on_sys_exit_997_annoyatron900() {
# register with the server
###
on_sys_init_010_bootup() {
DEFAULT=${USER:-uplime} state_resolve owner
DEFAULT=\` state_resolve trigger
DEFAULT=yes state_resolve dev
}
on_sys_init_020_welcome() {
NS=irc state_resolve chans
}
@ -1332,8 +1332,8 @@ on_register_mode_getter() {
###
cleanup() {
run_callbacks on_exit_
run_callbacks on_sys_exit_
run_callbacks on_exit_
}
trap cleanup EXIT