From 85cbc020a3d454247900de9c3a76c678383facec Mon Sep 17 00:00:00 2001 From: Harry Jeffery Date: Sun, 8 Sep 2013 16:59:56 +0100 Subject: [PATCH] Fixed erroneous argument shadowing --- server.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 53ecc35..96f5ecd 100644 --- a/server.go +++ b/server.go @@ -176,7 +176,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) { message := strings.Join(args[1:], " ") channel, chanExists := s.channelMap[strings.ToLower(args[0])] - client, clientExists := s.clientMap[strings.ToLower(args[0])] + client2, clientExists := s.clientMap[strings.ToLower(args[0])] if chanExists { if channel.mode.noExternal { @@ -200,7 +200,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) { } } } else if clientExists { - client.reply(rplMsg, client.nick, client.nick, message) + client.reply(rplMsg, client.nick, client2.nick, message) } else { client.reply(errNoSuchNick, args[0]) }