Handle ERR_NOPERMFORHOST and ERR_YOUREBANNEDCREEP
This commit is contained in:
parent
ba37d374ec
commit
9fd69c745e
@ -1343,7 +1343,7 @@ func (uc *upstreamConn) handleMessage(msg *irc.Message) error {
|
|||||||
// Ignore
|
// Ignore
|
||||||
case irc.RPL_STATSVLINE, rpl_statsping, irc.RPL_STATSBLINE, irc.RPL_STATSDLINE:
|
case irc.RPL_STATSVLINE, rpl_statsping, irc.RPL_STATSBLINE, irc.RPL_STATSDLINE:
|
||||||
// Ignore
|
// 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 {
|
if !uc.registered {
|
||||||
return fmt.Errorf("registration failed: %v", msg.Params[len(msg.Params)-1])
|
return fmt.Errorf("registration failed: %v", msg.Params[len(msg.Params)-1])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user