From 76d0c1f61d5981603389e6267bf62636f34bef1f Mon Sep 17 00:00:00 2001 From: Jeff Halter <868228+jhalter@users.noreply.github.com> Date: Wed, 24 Jan 2024 10:41:51 -0800 Subject: Rename encode/decode methods --- 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 3353095..35a7086 100644 --- a/hotline/client.go +++ b/hotline/client.go @@ -580,8 +580,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, negateString([]byte(login))), - NewField(FieldUserPassword, negateString([]byte(password))), + NewField(FieldUserLogin, encodeString([]byte(login))), + NewField(FieldUserPassword, encodeString([]byte(password))), ), ) } -- cgit