From 07d5c0676e02a27683b93835eba57fa53aaa3de8 Mon Sep 17 00:00:00 2001 From: Alex Bramley Date: Fri, 22 Jul 2011 01:20:07 +0100 Subject: [PATCH] Fix compile error when NewNick() is called before initialise(). --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index 892bf8a..f44a22b 100644 --- a/client/connection.go +++ b/client/connection.go @@ -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 }