Order the irc send handlers alphabetically
This commit is contained in:
parent
2e9fa68527
commit
dd693d1127
1 changed files with 22 additions and 12 deletions
34
rowbot
34
rowbot
|
@ -660,6 +660,16 @@ irc_notice() {
|
||||||
log_info "[%s/%s] %s" "${config[nick]}" "$1" "$msg"
|
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() {
|
irc_ping() {
|
||||||
net_send "PING :%s" "$1"
|
net_send "PING :%s" "$1"
|
||||||
}
|
}
|
||||||
|
@ -686,18 +696,6 @@ irc_privmsg() {
|
||||||
log_info "<%s/%s> %s" "${config[nick]}" "$1" "$msg"
|
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() {
|
irc_part() {
|
||||||
if (( $# )); then
|
if (( $# )); then
|
||||||
if (( $# > 1 )); then
|
if (( $# > 1 )); then
|
||||||
|
@ -716,6 +714,18 @@ irc_quit() {
|
||||||
fi
|
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
|
# plugin api
|
||||||
###
|
###
|
||||||
|
|
Loading…
Reference in a new issue