diff --git a/irc.go b/irc.go index 1ee1405..2aa6c40 100644 --- a/irc.go +++ b/irc.go @@ -97,6 +97,9 @@ func (irc *Connection) readLoop() { } /* XXX: len(args) == 0: args should be empty */ + if irc.VerboseReadLoop { + irc.Log.Println(event.Raw) + } irc.RunCallbacks(event) } diff --git a/irc_struct.go b/irc_struct.go index 161c6a2..6f7a259 100644 --- a/irc_struct.go +++ b/irc_struct.go @@ -38,6 +38,7 @@ type Connection struct { lastMessage time.Time VerboseCallbackHandler bool + VerboseReadLoop bool Log *log.Logger stopped bool