Просмотр исходного кода

fix a spurious error logline

unregistering an always-on client would produce
"attempting to persist logged-out client : x"
because the client was always-on, but also being ejected
tags/v2.0.0
Shivaram Lingamneni 4 лет назад
Родитель
Сommit
e7c1800893
1 измененных файлов: 1 добавлений и 0 удалений
  1. 1
    0
      irc/accounts.go

+ 1
- 0
irc/accounts.go Просмотреть файл

@@ -1152,6 +1152,7 @@ func (am *AccountManager) Unregister(account string) error {
1152 1152
 	}
1153 1153
 	for _, client := range clients {
1154 1154
 		if config.Accounts.RequireSasl.Enabled {
1155
+			client.Logout()
1155 1156
 			client.Quit(client.t("You are no longer authorized to be on this server"), nil)
1156 1157
 			// destroy acquires a semaphore so we can't call it while holding a lock
1157 1158
 			go client.destroy(nil)

Загрузка…
Отмена
Сохранить