Fixed erroneous argument shadowing
This commit is contained in:
parent
10e3a6a6e3
commit
85cbc020a3
@ -176,7 +176,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) {
|
|||||||
message := strings.Join(args[1:], " ")
|
message := strings.Join(args[1:], " ")
|
||||||
|
|
||||||
channel, chanExists := s.channelMap[strings.ToLower(args[0])]
|
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 chanExists {
|
||||||
if channel.mode.noExternal {
|
if channel.mode.noExternal {
|
||||||
@ -200,7 +200,7 @@ func (s *Server) handleCommand(client *Client, command string, args []string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if clientExists {
|
} else if clientExists {
|
||||||
client.reply(rplMsg, client.nick, client.nick, message)
|
client.reply(rplMsg, client.nick, client2.nick, message)
|
||||||
} else {
|
} else {
|
||||||
client.reply(errNoSuchNick, args[0])
|
client.reply(errNoSuchNick, args[0])
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user