diff options
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r-- | src/modules/m_sasl.cpp | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 3c3b1d2a0..bb2f70448 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -226,8 +226,8 @@ class ModuleSASL : public Module ModuleSASL() : authExt("sasl_auth", this), cap(this, "sasl"), auth(this, authExt, cap), sasl(this, authExt) { - Implementation eventlist[] = { I_OnEvent, I_OnUserRegister, I_OnSetConnectClass }; - ServerInstance->Modules->Attach(eventlist, this, 3); + Implementation eventlist[] = { I_OnEvent, I_OnUserRegister }; + ServerInstance->Modules->Attach(eventlist, this, 2); ServiceProvider* providelist[] = { &auth, &sasl, &authExt }; ServerInstance->Modules->AddServices(providelist, 3); @@ -248,21 +248,6 @@ class ModuleSASL : public Module return MOD_RES_PASSTHRU; } - ModResult OnSetConnectClass(LocalUser* user, ConnectClass* myclass) - { - if (myclass->config->getBool("requiresasl")) - { - const AccountExtItem* ext = GetAccountExtItem(); - if (ext && !ext->get(user)) - return MOD_RES_DENY; - } - return MOD_RES_PASSTHRU; - } - - ~ModuleSASL() - { - } - Version GetVersion() { return Version("Provides support for IRC Authentication Layer (aka: atheme SASL) via AUTHENTICATE.",VF_VENDOR); |