mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
clean up magic numbers
This commit is contained in:
parent
51cdebf167
commit
2b8eb93c00
3 changed files with 11 additions and 7 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue