diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-01-24 10:41:51 -0800 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2024-01-24 10:41:51 -0800 |
| commit | 76d0c1f61d5981603389e6267bf62636f34bef1f (patch) | |
| tree | 41534fcb6f03671670b0727d40302c14b6f9def0 /hotline/client.go | |
| parent | 6aa45e93e2b9d1bd91c9fa6a736f0c669d3ae303 (diff) | |
Rename encode/decode methods
Diffstat (limited to 'hotline/client.go')
| -rw-r--r-- | hotline/client.go | 4 |
1 files changed, 2 insertions, 2 deletions
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))), ), ) } |