1
0
Fork 0
forked from External/ergo

upgrade ircmsg again

This commit is contained in:
Shivaram Lingamneni 2020-11-17 21:53:14 -05:00
parent 323ef7c642
commit 3f20676f46
4 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,6 @@
package ircmsg
import "bytes"
import "strings"
var (
@ -39,7 +38,7 @@ func EscapeTagValue(inString string) string {
// so you don't need to call it yourself after parsing a line.
func UnescapeTagValue(inString string) string {
// buf.Len() == 0 is the fastpath where we have not needed to unescape any chars
var buf bytes.Buffer
var buf strings.Builder
remainder := inString
for {
backslashPos := strings.IndexByte(remainder, '\\')

2
vendor/modules.txt vendored
View file

@ -21,7 +21,7 @@ github.com/go-sql-driver/mysql
# github.com/gorilla/websocket v1.4.2
## explicit
github.com/gorilla/websocket
# github.com/goshuirc/irc-go v0.0.0-20201116034710-7e7b0985c4b5
# github.com/goshuirc/irc-go v0.0.0-20201118022549-7209d10d54a8
## explicit
github.com/goshuirc/irc-go/ircfmt
github.com/goshuirc/irc-go/ircmsg