|
@@ -1305,14 +1305,10 @@ func (am *AccountManager) Unregister(account string, erase bool) error {
|
1305
|
1305
|
delete(am.skeletonToAccount, additionalSkel)
|
1306
|
1306
|
}
|
1307
|
1307
|
for _, client := range clients {
|
1308
|
|
- if config.Accounts.RequireSasl.Enabled {
|
1309
|
|
- client.Logout()
|
1310
|
|
- client.Quit(client.t("You are no longer authorized to be on this server"), nil)
|
1311
|
|
- // destroy acquires a semaphore so we can't call it while holding a lock
|
1312
|
|
- go client.destroy(nil)
|
1313
|
|
- } else {
|
1314
|
|
- am.logoutOfAccount(client)
|
1315
|
|
- }
|
|
1308
|
+ client.Logout()
|
|
1309
|
+ client.Quit(client.t("You are no longer authorized to be on this server"), nil)
|
|
1310
|
+ // destroy acquires a semaphore so we can't call it while holding a lock
|
|
1311
|
+ go client.destroy(nil)
|
1316
|
1312
|
}
|
1317
|
1313
|
|
1318
|
1314
|
if err != nil && !erase {
|