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 ###