Procházet zdrojové kódy

Merge pull request #1382 from slingamn/unsuspend_bug

fix casefolding issue in NS SUSPEND DEL
tags/v2.5.0-rc1
Shivaram Lingamneni před 3 roky
rodič
revize
7cfb298617
Žádný účet není propojen s e-mailovou adresou tvůrce revize
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3
    3
      irc/accounts.go

+ 3
- 3
irc/accounts.go Zobrazit soubor

@@ -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 {

Načítá se…
Zrušit
Uložit