Log downstream messages before registration

This commit is contained in:
Simon Ser 2020-03-16 15:10:16 +01:00
parent 1241bf82aa
commit bdfb8634e9
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -602,6 +602,10 @@ func (dc *downstreamConn) runUntilRegistered() error {
return fmt.Errorf("failed to read IRC command: %v", err)
}
if dc.srv.Debug {
dc.logger.Printf("received: %v", msg)
}
err = dc.handleMessage(msg)
if ircErr, ok := err.(ircError); ok {
ircErr.Message.Prefix = dc.srv.prefix()