From b91563eccf9c39ed503617bbc59def0fb81aad68 Mon Sep 17 00:00:00 2001 From: StalkR Date: Wed, 1 Apr 2015 01:33:26 +0200 Subject: [PATCH] client/connection: conn.Me(): do not override cfg.Me or it is lost for next reconnect --- client/connection.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/connection.go b/client/connection.go index c577b51..75172a4 100644 --- a/client/connection.go +++ b/client/connection.go @@ -172,7 +172,7 @@ func (conn *Conn) Me() *state.Nick { conn.mu.RLock() defer conn.mu.RUnlock() if conn.st != nil { - conn.cfg.Me = conn.st.Me() + return conn.st.Me() } return conn.cfg.Me }