From 64e72362d9713f1d5bdc2d9777b68a6533e9f4e7 Mon Sep 17 00:00:00 2001 From: iiori Date: Sat, 27 Feb 2016 20:54:33 -0500 Subject: [PATCH] Fixed an index out of range error that occurs when a client without a nick sends a USER command. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index f09f6b8..5c9581b 100644 --- a/server.go +++ b/server.go @@ -111,7 +111,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) { case "USER": if client.nick == "" { - client.reply(rplKill, "Your nickname is already being used") + client.reply(rplKill, "Your nickname is already being used", "") client.disconnect() } else { client.reply(rplWelcome)