Add more default IRC handlers
This commit is contained in:
parent
1366f4978f
commit
34fb5be792
78
rowbot
78
rowbot
|
@ -523,6 +523,84 @@ irc_on_005() {
|
|||
log_debug "received inotify specs"
|
||||
}
|
||||
|
||||
irc_on_250() {
|
||||
log_info %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_251() {
|
||||
log_info %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_252() {
|
||||
log_info "There are %d operators online" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_253() {
|
||||
log_info "There are %d unknown connections" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_254() {
|
||||
log_info "There are %d channels formed" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_255() {
|
||||
log_info %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_265() {
|
||||
log_info %s "${msg_args[3]}"
|
||||
}
|
||||
|
||||
irc_on_266() {
|
||||
log_info %s "${msg_args[3]}"
|
||||
}
|
||||
|
||||
irc_on_315() {
|
||||
log_debug "end of WHO for %s" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_332() {
|
||||
log_info "topic for %s is %s" "${msg_args[1]}" "${msg_args[2]}"
|
||||
}
|
||||
|
||||
irc_on_333() {
|
||||
local date
|
||||
printf -v date '%(%c)T' "${msg_args[3]}"
|
||||
log_info "topic for %s set by %s at %s" "${msg_args[1]}" "${msg_args[2]}" "$date"
|
||||
}
|
||||
|
||||
irc_on_353() {
|
||||
log_info "members of %s: %s" "${msg_args[2]}" "${msg_args[3]}"
|
||||
}
|
||||
|
||||
irc_on_366() {
|
||||
log_debug "%s: end of NAMES list" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_372() {
|
||||
log_info %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_375() {
|
||||
log_debug %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_376() {
|
||||
log_debug %s "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_433() {
|
||||
log_info "somebody is already using %s" "${msg_args[1]}"
|
||||
}
|
||||
|
||||
irc_on_438() {
|
||||
log_error "%s couldn't change their nick to %s: %s" "${msg_args[1]}" "${msg_args[2]}" "${msg_args[-1]}"
|
||||
}
|
||||
|
||||
irc_on_473() {
|
||||
log_error "%s: %s" "${msg_args[1]}" "${msg_args[2]}"
|
||||
}
|
||||
|
||||
###
|
||||
# irc send handlers
|
||||
###
|
||||
|
|
Loading…
Reference in New Issue