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/account.go | |
| parent | 6aa45e93e2b9d1bd91c9fa6a736f0c669d3ae303 (diff) | |
Rename encode/decode methods
Diffstat (limited to 'hotline/account.go')
| -rw-r--r-- | hotline/account.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hotline/account.go b/hotline/account.go index c51162d..b041f3c 100644 --- a/hotline/account.go +++ b/hotline/account.go @@ -19,7 +19,7 @@ type Account struct { func (a *Account) Read(p []byte) (n int, err error) { fields := []Field{ NewField(FieldUserName, []byte(a.Name)), - NewField(FieldUserLogin, negateString([]byte(a.Login))), + NewField(FieldUserLogin, encodeString([]byte(a.Login))), NewField(FieldUserAccess, a.Access[:]), } |