Fix compile error when NewNick() is called before initialise().

This commit is contained in:
Alex Bramley 2011-07-22 01:20:07 +01:00
parent 6634869fe6
commit 07d5c0676e
1 changed files with 1 additions and 1 deletions

View File

@ -82,9 +82,9 @@ func New(nick, user, name string) *Conn {
Timestamp: time.LocalTime, Timestamp: time.LocalTime,
TSFormat: "15:04:05", TSFormat: "15:04:05",
} }
conn.Me = conn.NewNick(nick, user, name, "")
conn.initialise() conn.initialise()
conn.setupEvents() conn.setupEvents()
conn.Me = conn.NewNick(nick, user, name, "")
return conn return conn
} }