mirror of https://github.com/fluffle/goirc
gofmt run.
This commit is contained in:
parent
ac9d05efa2
commit
31606b7f2f
|
@ -78,7 +78,7 @@ func NewConfig(nick string, args ...string) *Config {
|
||||||
Me: state.NewNick(nick),
|
Me: state.NewNick(nick),
|
||||||
PingFreq: 3 * time.Minute,
|
PingFreq: 3 * time.Minute,
|
||||||
NewNick: func(s string) string { return s + "_" },
|
NewNick: func(s string) string { return s + "_" },
|
||||||
Recover: (*Conn).LogPanic, // in dispatch.go
|
Recover: (*Conn).LogPanic, // in dispatch.go
|
||||||
}
|
}
|
||||||
cfg.Me.Ident = "goirc"
|
cfg.Me.Ident = "goirc"
|
||||||
if len(args) > 0 && args[0] != "" {
|
if len(args) > 0 && args[0] != "" {
|
||||||
|
|
|
@ -148,5 +148,5 @@ func (conn *Conn) LogPanic(line *Line) {
|
||||||
if err := recover(); err != nil {
|
if err := recover(); err != nil {
|
||||||
_, f, l, _ := runtime.Caller(2)
|
_, f, l, _ := runtime.Caller(2)
|
||||||
logging.Error("%s:%d: panic: %v", f, l, err)
|
logging.Error("%s:%d: panic: %v", f, l, err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue