From 6d7790777765fead0ea88a4e12ac7829223b120b Mon Sep 17 00:00:00 2001 From: Carl Reinke Date: Sat, 2 Aug 2014 15:09:32 -0600 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 cbd1c9e..8c4f18b 100644 --- a/handlers.lua +++ b/handlers.lua @@ -90,6 +90,13 @@ handlers["432"] = needNewNick -- ERR_NICKNAMEINUSE handlers["433"] = needNewNick +-- ERR_UNAVAILRESOURCE +handlers["437"] = function(o, prefix, target, badnick) + if not o.authed then + needNewNick(o, prefix, target, badnick) + end +end + --NAMES list handlers["353"] = function(o, prefix, me, chanType, channel, names) if o.track_users then