|
@@ -1350,14 +1350,14 @@ func (am *AccountManager) killClients(clients []*Client) {
|
1350
|
1350
|
}
|
1351
|
1351
|
}
|
1352
|
1352
|
|
1353
|
|
-func (am *AccountManager) Unsuspend(account string) (err error) {
|
1354
|
|
- cfaccount, err := CasefoldName(account)
|
|
1353
|
+func (am *AccountManager) Unsuspend(accountName string) (err error) {
|
|
1354
|
+ cfaccount, err := CasefoldName(accountName)
|
1355
|
1355
|
if err != nil {
|
1356
|
1356
|
return errAccountDoesNotExist
|
1357
|
1357
|
}
|
1358
|
1358
|
|
1359
|
1359
|
existsKey := fmt.Sprintf(keyAccountExists, cfaccount)
|
1360
|
|
- suspensionKey := fmt.Sprintf(keyAccountSuspended, account)
|
|
1360
|
+ suspensionKey := fmt.Sprintf(keyAccountSuspended, cfaccount)
|
1361
|
1361
|
err = am.server.store.Update(func(tx *buntdb.Tx) error {
|
1362
|
1362
|
_, err := tx.Get(existsKey)
|
1363
|
1363
|
if err != nil {
|