diff options
| author | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-03 18:00:05 -0700 |
|---|---|---|
| committer | Jeff Halter <868228+jhalter@users.noreply.github.com> | 2021-08-03 13:00:05 -0700 |
| commit | b25c4a19420c2fde1f290dd360c68b84e4eaa1ed (patch) | |
| tree | 86c7611bf22f75f0cb13eddd815c9c8e55e47e10 /hotline/transaction_handlers.go | |
| parent | 4c3b4c7fe03bcc7e70fd846b954ffc83bdbcfaa3 (diff) | |
Fix string negation bug
Diffstat (limited to 'hotline/transaction_handlers.go')
| -rw-r--r-- | hotline/transaction_handlers.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/hotline/transaction_handlers.go b/hotline/transaction_handlers.go index b06297d..0ae6071 100644 --- a/hotline/transaction_handlers.go +++ b/hotline/transaction_handlers.go @@ -625,7 +625,6 @@ func HandleSetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error func HandleGetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error) { userLogin := string(t.GetField(fieldUserLogin).Data) - decodedUserLogin := NegatedUserString(t.GetField(fieldUserLogin).Data) account := cc.Server.Accounts[userLogin] if account == nil { errorT := cc.NewErrReply(t, "Account does not exist.") @@ -635,7 +634,7 @@ func HandleGetUser(cc *ClientConn, t *Transaction) (res []Transaction, err error res = append(res, cc.NewReply(t, NewField(fieldUserName, []byte(account.Name)), - NewField(fieldUserLogin, []byte(decodedUserLogin)), + NewField(fieldUserLogin, negateString(t.GetField(fieldUserLogin).Data)), NewField(fieldUserPassword, []byte(account.Password)), NewField(fieldUserAccess, *account.Access), )) |