diff options
author | Wim <wim@42.be> | 2019-09-07 22:46:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-07 22:46:58 +0200 |
commit | a3bee01e0af3394c19360b98fd2db1b647f49299 (patch) | |
tree | ffc5778361d55d592a718354a37c9251e75fc7f6 /vendor/github.com/Philipp15b/go-steam/protocol/internal.go | |
parent | 1dc93ec4f001edd01daccbe408767d4878be25a3 (diff) | |
download | matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.tar.gz matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.tar.bz2 matterbridge-msglm-a3bee01e0af3394c19360b98fd2db1b647f49299.zip |
Update dependencies (#886)
Diffstat (limited to 'vendor/github.com/Philipp15b/go-steam/protocol/internal.go')
-rw-r--r-- | vendor/github.com/Philipp15b/go-steam/protocol/internal.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/Philipp15b/go-steam/protocol/internal.go b/vendor/github.com/Philipp15b/go-steam/protocol/internal.go index d9376384..197e384e 100644 --- a/vendor/github.com/Philipp15b/go-steam/protocol/internal.go +++ b/vendor/github.com/Philipp15b/go-steam/protocol/internal.go @@ -1,6 +1,7 @@ package protocol import ( + "encoding/hex" "io" "math" "strconv" @@ -42,6 +43,7 @@ const EClientPersonaStateFlag_DefaultInfoRequest = EClientPersonaStateFlag_Playe const DefaultAvatar = "fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb" -func ValidAvatar(avatar string) bool { - return !(avatar == "0000000000000000000000000000000000000000" || len(avatar) != 40) +func ValidAvatar(avatar []byte) bool { + str := hex.EncodeToString(avatar) + return !(str == "0000000000000000000000000000000000000000" || len(str) != 40) } |