From 908830a90c483356e026864547ddde79c33efdf6 Mon Sep 17 00:00:00 2001 From: bill-auger Date: Fri, 10 Apr 2020 17:15:58 -0400 Subject: log 437 response --- lib/numerics.sh | 1 + modules/m_services.sh | 5 +++++ 2 files changed, 6 insertions(+) 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 } -- cgit v1.2.2