From dd693d112725ed6a8789b5098889f0cee39c4cca Mon Sep 17 00:00:00 2001 From: Nick Chambers Date: Sat, 17 Jul 2021 01:32:47 -0500 Subject: [PATCH] Order the irc send handlers alphabetically --- rowbot | 34 ++++++++++++++++++++++------------ 1 file changed, 22 insertions(+), 12 deletions(-) diff --git a/rowbot b/rowbot index 69a2db6..631b4db 100755 --- a/rowbot +++ b/rowbot @@ -660,6 +660,16 @@ irc_notice() { log_info "[%s/%s] %s" "${config[nick]}" "$1" "$msg" } +irc_part() { + if (( $# )); then + if (( $# > 1 )); then + net_send "PART $1 :$2" + else + net_send "PART $1" + fi + fi +} + irc_ping() { net_send "PING :%s" "$1" } @@ -686,18 +696,6 @@ irc_privmsg() { log_info "<%s/%s> %s" "${config[nick]}" "$1" "$msg" } -irc_user() { - net_send "USER %s 0 * :%s" "$1" "$2" -} - -irc_who() { - if (( $# > 1 )); then - net_send "WHO %s %s" "$1" "$2" - else - net_send "WHO %s" "$1" - fi -} - irc_part() { if (( $# )); then if (( $# > 1 )); then @@ -716,6 +714,18 @@ irc_quit() { fi } +irc_user() { + net_send "USER %s 0 * :%s" "$1" "$2" +} + +irc_who() { + if (( $# > 1 )); then + net_send "WHO %s %s" "$1" "$2" + else + net_send "WHO %s" "$1" + fi +} + ### # plugin api ###