From 94cee489f35c2f0fa78444e5b6c08c2aca3ae3a9 Mon Sep 17 00:00:00 2001 From: clem1 Date: Sun, 6 Apr 2014 23:23:11 +0200 Subject: [PATCH] . --- client/handlers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/handlers.go b/client/handlers.go index 3b0a5f9..773f770 100644 --- a/client/handlers.go +++ b/client/handlers.go @@ -103,10 +103,10 @@ func (conn *Conn) h_433(line *Line) { // arm a timer to try get back our nick. go func(old string) { retry := 1 * time.Minute - for time.Sleep(retry); conn.cfg.Me.Nick != old; time.Sleep(retry) { + for time.Sleep(retry); conn.Me.Nick != old; time.Sleep(retry) { conn.Nick(old) } - }(conn.cfg.Me.Nick) + }(conn.Me.Nick) // if this is happening before we're properly connected (i.e. the nick // we sent in the initial NICK command is in use) we will not receive // a NICK message to confirm our change of nick, so ReNick here...