mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-23 03:02:48 +01:00
WHOIS: Hack to make silly clients work
This commit is contained in:
parent
5e6ac67010
commit
2de273462b
@ -955,7 +955,8 @@ 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, strings.Join(whoischannels, " "))
|
||||
// the dodgy +" " hack here is to work around some silly clients that don't parse trailing params correctly. This forces last param to be a trailing always.
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user