Order the irc send handlers alphabetically

This commit is contained in:
Nick Chambers 2021-07-17 01:32:47 -05:00
parent 2e9fa68527
commit dd693d1127
1 changed files with 22 additions and 12 deletions

34
rowbot
View File

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