Add isupport to plugins

This commit is contained in:
Nick Chambers 2021-07-19 17:37:27 -05:00
parent ad2c227a38
commit cb615091f7
1 changed files with 17 additions and 1 deletions

18
rowbot
View File

@ -475,6 +475,22 @@ on_sys_init_999_welcome() {
get_option chan ""
}
on_msg_005_welcome() {
declare -gA isupport
local param key value
for param in "${args[@]:1:${#args[@]}-2}"; do
# This is a valid assignment, not a comparison.
# shellcheck disable=SC1097
IFS== read -r key value <<< "$param"
# While isupport is unused, it's still there in case later code wants to
# use it.
# shellcheck disable=SC2034
isupport[$key]=$value
debug "isupport: %s = %s" "$key" "$value"
done
}
on_sys_register_999_welcome() {
if [[ ${config[chan]} ]]; then
irc_join "${config[chan]}"
@ -587,7 +603,7 @@ irc_on_004() {
}
irc_on_005() {
log_debug "received inotify specification: ${msg_args[*]}"
log_debug "received inotify specification: ${msg_args[*]:1}"
}
irc_on_250() {