Fix the condition for skipping handlers

This commit is contained in:
Nick Chambers 2021-07-10 18:47:17 -05:00 committed by Nick Chambers
parent 8cfdeb5a99
commit 1366f4978f
1 changed files with 2 additions and 2 deletions

4
rowbot
View File

@ -666,9 +666,9 @@ while net_recv line; do
if has irc_on_"${msg[cmd]}"; then
if run_callbacks "on_msg_${msg[cmd]}_"; then
log_debug "handler for %s was skipped" "${msg[cmd]}"
else
irc_on_"${msg[cmd]}"
else
log_debug "handler for %s was skipped" "${msg[cmd]}"
fi
run_callbacks "on_late_msg_${msg[cmd]}_"