clean up magic numbers

This commit is contained in:
Shivaram Lingamneni 2022-04-24 11:57:21 -04:00
parent 51cdebf167
commit 2b8eb93c00
3 changed files with 11 additions and 7 deletions

View file

@ -506,7 +506,7 @@ func (client *Client) getWhoisOf(target *Client, hasPrivs bool, rb *ResponseBuff
whoischannels := client.whoisChannelsNames(target, rb.session.capabilities.Has(caps.MultiPrefix), oper.HasRoleCapab("sajoin"))
if whoischannels != nil {
for _, line := range utils.BuildTokenLines(400, whoischannels, " ") {
for _, line := range utils.BuildTokenLines(maxLastArgLength, whoischannels, " ") {
rb.Add(nil, client.server.name, RPL_WHOISCHANNELS, cnick, tnick, line)
}
}