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:
commit
39e8eca0ef
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user