diff --git a/client/connection.go b/client/connection.go index 88f992e..578f15b 100644 --- a/client/connection.go +++ b/client/connection.go @@ -78,7 +78,7 @@ func NewConfig(nick string, args ...string) *Config { Me: state.NewNick(nick), PingFreq: 3 * time.Minute, NewNick: func(s string) string { return s + "_" }, - Recover: (*Conn).LogPanic, // in dispatch.go + Recover: (*Conn).LogPanic, // in dispatch.go } cfg.Me.Ident = "goirc" if len(args) > 0 && args[0] != "" { diff --git a/client/dispatch.go b/client/dispatch.go index 0c7ae89..4528503 100644 --- a/client/dispatch.go +++ b/client/dispatch.go @@ -148,5 +148,5 @@ func (conn *Conn) LogPanic(line *Line) { if err := recover(); err != nil { _, f, l, _ := runtime.Caller(2) logging.Error("%s:%d: panic: %v", f, l, err) - } + } }