mirror of
https://github.com/znc/znc.git
synced 2026-08-08 01:43:03 +02:00
Simply disconnect if SASL not available on server
Instead of disabling network This unavailability could be temporarily Fix #1918
This commit is contained in:
+1
-3
@@ -189,9 +189,7 @@ class CSASLMod : public CModule {
|
||||
|
||||
void CheckRequireAuth() {
|
||||
if (!m_bAuthenticated && GetNV(NV_REQUIRE_AUTH).ToBool()) {
|
||||
GetNetwork()->SetIRCConnectEnabled(false);
|
||||
PutModule(t_s("Disabling network, we require authentication."));
|
||||
PutModule(t_s("Use 'RequireAuth no' to disable."));
|
||||
GetNetwork()->GetIRCSock()->Quit("SASL not available");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user