Handle NOTICE from upstream servers

This commit is contained in:
Simon Ser 2020-02-06 18:10:13 +01:00
parent 343d4cfded
commit 836a9c6986
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -84,6 +84,8 @@ func (c *upstreamConn) handleMessage(msg *irc.Message) error {
return fmt.Errorf("received MODE message for unknow nick %q", nick)
}
return c.modes.Apply(msg.Params[1])
case "NOTICE":
c.srv.Logger.Printf("%q: %v", c.upstream.Addr, msg)
case irc.RPL_WELCOME:
c.registered = true
c.srv.Logger.Printf("Connection to %q registered", c.upstream.Addr)