3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-22 11:59:40 +01:00

whois: Send channels without prefix (handled by Send())

This commit is contained in:
Daniel Oaks 2017-01-13 13:12:36 +10:00
parent a54dcb9057
commit 0a3de9a912

View File

@ -955,7 +955,7 @@ func (client *Client) getWhoisOf(target *Client) {
whoischannels := client.WhoisChannelsNames(target)
if whoischannels != nil {
client.Send(nil, client.server.name, RPL_WHOISCHANNELS, client.nick, target.nick, fmt.Sprintf(": %s", strings.Join(whoischannels, " ")))
client.Send(nil, client.server.name, RPL_WHOISCHANNELS, client.nick, target.nick, strings.Join(whoischannels, " "))
}
if target.class != nil {
client.Send(nil, client.server.name, RPL_WHOISOPERATOR, client.nick, target.nick, target.whoisLine)