forked from External/ergo
use strings.Builder instead of bytes.Buffer where applicable
This commit is contained in:
parent
425cdffe39
commit
00e2c2816b
3 changed files with 6 additions and 8 deletions
|
|
@ -6,7 +6,6 @@
|
|||
package irc
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
|
@ -447,7 +446,7 @@ func (channel *Channel) Names(client *Client, rb *ResponseBuffer) {
|
|||
|
||||
maxNamLen := 480 - len(client.server.name) - len(client.Nick())
|
||||
var namesLines []string
|
||||
var buffer bytes.Buffer
|
||||
var buffer strings.Builder
|
||||
if isJoined || !channel.flags.HasMode(modes.Secret) || isOper {
|
||||
for _, target := range channel.Members() {
|
||||
var nick string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue