mirror of https://github.com/fluffle/goirc
Fix compile error when NewNick() is called before initialise().
This commit is contained in:
parent
6634869fe6
commit
07d5c0676e
|
@ -82,9 +82,9 @@ func New(nick, user, name string) *Conn {
|
|||
Timestamp: time.LocalTime,
|
||||
TSFormat: "15:04:05",
|
||||
}
|
||||
conn.Me = conn.NewNick(nick, user, name, "")
|
||||
conn.initialise()
|
||||
conn.setupEvents()
|
||||
conn.Me = conn.NewNick(nick, user, name, "")
|
||||
return conn
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue