1
0
Fork 0
forked from External/ergo

use strings.Builder instead of bytes.Buffer where applicable

This commit is contained in:
Shivaram Lingamneni 2020-06-08 23:38:10 -04:00
parent 425cdffe39
commit 00e2c2816b
3 changed files with 6 additions and 8 deletions

View file

@ -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