aboutsummaryrefslogtreecommitdiff
path: root/hotline/transaction_handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'hotline/transaction_handlers.go')
-rw-r--r--hotline/transaction_handlers.go3
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),
))