aboutsummaryrefslogtreecommitdiff
path: root/hotline/client.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-03 18:00:05 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2021-08-03 13:00:05 -0700
commitb25c4a19420c2fde1f290dd360c68b84e4eaa1ed (patch)
tree86c7611bf22f75f0cb13eddd815c9c8e55e47e10 /hotline/client.go
parent4c3b4c7fe03bcc7e70fd846b954ffc83bdbcfaa3 (diff)
Fix string negation bug
Diffstat (limited to 'hotline/client.go')
-rw-r--r--hotline/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/hotline/client.go b/hotline/client.go
index fb3f4e7..b423f9f 100644
--- a/hotline/client.go
+++ b/hotline/client.go
@@ -612,8 +612,8 @@ func (c *Client) LogIn(login string, password string) error {
tranLogin, nil,
NewField(fieldUserName, []byte(c.pref.Username)),
NewField(fieldUserIconID, c.pref.IconBytes()),
- NewField(fieldUserLogin, []byte(NegatedUserString([]byte(login)))),
- NewField(fieldUserPassword, []byte(NegatedUserString([]byte(password)))),
+ NewField(fieldUserLogin, negateString([]byte(login))),
+ NewField(fieldUserPassword, negateString([]byte(password))),
NewField(fieldVersion, []byte{0, 2}),
),
)