From 9fd69c745ef371e620d6e74e315218fa8640b281 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 13 Aug 2020 15:25:34 +0200 Subject: [PATCH] Handle ERR_NOPERMFORHOST and ERR_YOUREBANNEDCREEP --- upstream.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upstream.go b/upstream.go index 25b0bf5..9d1252a 100644 --- a/upstream.go +++ b/upstream.go @@ -1343,7 +1343,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error { // Ignore case irc.RPL_STATSVLINE, rpl_statsping, irc.RPL_STATSBLINE, irc.RPL_STATSDLINE: // Ignore - case irc.ERR_PASSWDMISMATCH, irc.ERR_ERRONEUSNICKNAME, irc.ERR_NICKNAMEINUSE, irc.ERR_NICKCOLLISION, irc.ERR_UNAVAILRESOURCE: + case irc.ERR_PASSWDMISMATCH, irc.ERR_ERRONEUSNICKNAME, irc.ERR_NICKNAMEINUSE, irc.ERR_NICKCOLLISION, irc.ERR_UNAVAILRESOURCE, irc.ERR_NOPERMFORHOST, irc.ERR_YOUREBANNEDCREEP: if !uc.registered { return fmt.Errorf("registration failed: %v", msg.Params[len(msg.Params)-1]) }