From 50b068ba15cca28f7ca164956038ef1ded588498 Mon Sep 17 00:00:00 2001 From: Carl Reinke Date: Sun, 3 Aug 2014 13:04:28 -0400 Subject: [PATCH] Add handler for 437 ERR_UNAVAILRESOURCE --- handlers.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/handlers.lua b/handlers.lua index 26e545b..d89247c 100644 --- a/handlers.lua +++ b/handlers.lua @@ -87,6 +87,13 @@ handlers["432"] = needNewNick -- ERR_NICKNAMEINUSE handlers["433"] = needNewNick +-- ERR_UNAVAILRESOURCE +handlers["437"] = function(conn, msg) + if not conn.authed then + needNewNick(conn, msg) + end +end + -- RPL_ISUPPORT handlers["005"] = function(conn, msg) local arglen = #msg.args