Merge pull request #1 from iiori/fix-user

Fixed an index out of range error in the USER command handler
This commit is contained in:
Harry Jeffery 2016-02-28 22:33:44 +00:00
commit 39e8eca0ef

View File

@ -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)