Nickname Retry Logic #1
1 changed files with 10 additions and 1 deletions
11
rowbot
11
rowbot
|
@ -140,9 +140,14 @@ trap cleanup EXIT
|
|||
if [[ $reload = yes ]]; then
|
||||
in_sock=$IN_SOCK out_sock=$OUT_SOCK
|
||||
trigger=$TRIGGER dev=$DEV level=$LOG_LEVEL
|
||||
registered=$REGISTERED
|
||||
|
||||
debug "doing a reload. pid is %d" "$$"
|
||||
|
||||
if [[ -v KEEP_TRYING ]]; then
|
||||
keep_trying=$KEEP_TRYING desired_nick=$DESIRED
|
||||
fi
|
||||
|
||||
if [[ $tls = yes ]]; then
|
||||
sock_dir=$SOCK_DIR
|
||||
tls_pid=$tls_pid
|
||||
|
@ -618,7 +623,11 @@ hook_post_PRIVMSG_control_panel() {
|
|||
reload)
|
||||
export IN_SOCK=$in_sock OUT_SOCK=$out_sock LOG_FD=$log DEV=$dev
|
||||
export RELOAD_TO=$to TRIGGER=$trigger LOG_LEVEL=$level
|
||||
export NICK=$nick IDENT=$ident
|
||||
export NICK=$nick IDENT=$ident REGISTERED=$registered
|
||||
|
||||
if [[ $keep_trying = yes ]]; then
|
||||
export KEEP_TRYING=yes DESIRED=$desired_nick
|
||||
fi
|
||||
|
||||
if [[ -v host ]]; then
|
||||
export HOST=$host
|
||||
|
|
Loading…
Reference in a new issue