From 08674caae56f1709d8d8a8753ee8a7c51596eba4 Mon Sep 17 00:00:00 2001 From: Matthew McNamara Date: Thu, 21 Feb 2019 22:31:06 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20send=20NICK=20and=20USER=20whil?= =?UTF-8?q?e=20negotiating=20caps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/irc.go b/irc.go index 45701d3..512fef8 100644 --- a/irc.go +++ b/irc.go @@ -568,13 +568,6 @@ func (irc *Connection) negotiateCaps() error { } irc.pwrite <- fmt.Sprintf("CAP END\r\n") - realname := irc.user - if irc.RealName != "" { - realname = irc.RealName - } - - irc.pwrite <- fmt.Sprintf("NICK %s\r\n", irc.nick) - irc.pwrite <- fmt.Sprintf("USER %s 0.0.0.0 0.0.0.0 :%s\r\n", irc.user, realname) return nil }