aboutsummaryrefslogtreecommitdiff
path: root/hotline/client.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
committerJeff Halter <868228+jhalter@users.noreply.github.com>2024-01-24 10:41:51 -0800
commit76d0c1f61d5981603389e6267bf62636f34bef1f (patch)
tree41534fcb6f03671670b0727d40302c14b6f9def0 /hotline/client.go
parent6aa45e93e2b9d1bd91c9fa6a736f0c669d3ae303 (diff)
Rename encode/decode methods
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 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))),
),
)
}