summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbill-auger <mr.j.spam.me@gmail.com>2020-04-10 17:15:58 -0400
committerbill-auger <mr.j.spam.me@gmail.com>2020-04-12 19:00:58 -0400
commit908830a90c483356e026864547ddde79c33efdf6 (patch)
treeb11404e18e5e8d0e27820120bfd7f9a8f09eed41
parent4196392a286bfb8c35c7d8fb90d5848e45d91114 (diff)
log 437 response
-rw-r--r--lib/numerics.sh1
-rw-r--r--modules/m_services.sh5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/numerics.sh b/lib/numerics.sh
index 1248342..a15f114 100644
--- a/lib/numerics.sh
+++ b/lib/numerics.sh
@@ -136,6 +136,7 @@ numeric_ERR_UNKNOWNCOMMAND='421'
numeric_ERR_NOMOTD='422'
numeric_ERR_ERRONEUSNICKNAME='432'
numeric_ERR_NICKNAMEINUSE='433'
+numeric_ERR_SERVICEUNAVAILABLE='437'
numeric_ERR_NICKTOOFAST='438'
numeric_ERR_USERNOTINCHANNEL='441'
numeric_ERR_NOTONCHANNEL='442'
diff --git a/modules/m_services.sh b/modules/m_services.sh
index 47d688e..1ad24b8 100644
--- a/modules/m_services.sh
+++ b/modules/m_services.sh
@@ -74,9 +74,14 @@ module_services_on_connect() {
log_info_stdout "Identifying..."
if [[ $config_module_services_style != 'atheme' ]]; then
send_raw_flood_nolog "NickServ IDENTIFY (password)" "${module_services_nickserv_command}IDENTIFY $config_module_services_nickserv_passwd"
+ # REGAIN may be necessary (rarely) if pbot can not login and gets 437 instead, and/or GHOST and RELEASE were unable to recover
+ #send_raw_flood_nolog "NickServ REGAIN" "${module_services_nickserv_command}regain $config_module_services_nickserv_passwd"
fi
sleep 1
;;
+ "$numeric_ERR_SERVICEUNAVAILABLE")
+ log_info_stdout "437: service not available"
+ ;;
esac
fi
}