diff --git a/downstream.go b/downstream.go index 8d6a9ff..c5aa1e0 100644 --- a/downstream.go +++ b/downstream.go @@ -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()