From b25c4a19420c2fde1f290dd360c68b84e4eaa1ed Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Tue, 3 Aug 2021 18:00:05 -0700 Subject: Fix string negation bug --- hotline/client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hotline/client.go') 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}), ), ) -- cgit