1
0
Fork 0
forked from External/ergo

Copy Insp's new BOT ISUPPORT token and WHO behaviour

This commit is contained in:
Daniel Oaks 2020-06-07 16:11:30 +10:00
parent 65b8f9a167
commit 6426b3d6ed
2 changed files with 4 additions and 0 deletions

View file

@ -444,6 +444,9 @@ func (client *Client) rplWhoReply(channel *Channel, target *Client, rb *Response
flags += channel.ClientPrefixes(target, rb.session.capabilities.Has(caps.MultiPrefix))
channelName = channel.name
}
if target.HasMode(modes.Bot) {
flags += "B"
}
details := target.Details()
// hardcode a hopcount of 0 for now
rb.Add(nil, client.server.name, RPL_WHOREPLY, client.Nick(), channelName, details.username, details.hostname, client.server.name, details.nick, flags, "0 "+details.realname)