]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_sasl: really abort sasl session on register
authorAdam <Adam@anope.org>
Tue, 6 Sep 2016 02:26:33 +0000 (22:26 -0400)
committerAdam <Adam@anope.org>
Tue, 6 Sep 2016 02:26:33 +0000 (22:26 -0400)
src/modules/m_sasl.cpp

index 16a15357f57e9eef8720a34d1a3caf01a723324a..649c218098ad682fef9016c6e5bde70b5961e35f 100644 (file)
@@ -268,7 +268,7 @@ class ModuleSASL : public Module
        void init()
        {
                OnRehash(NULL);
-               Implementation eventlist[] = { I_OnEvent, I_OnUserRegister, I_OnRehash };
+               Implementation eventlist[] = { I_OnEvent, I_OnUserConnect, I_OnRehash };
                ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
 
                ServiceProvider* providelist[] = { &auth, &sasl, &authExt };
@@ -283,7 +283,7 @@ class ModuleSASL : public Module
                sasl_target = ServerInstance->Config->ConfValue("sasl")->getString("target", "*");
        }
 
-       ModResult OnUserRegister(LocalUser *user)
+       void OnUserConnect(LocalUser *user)
        {
                SaslAuthenticator *sasl_ = authExt.get(user);
                if (sasl_)
@@ -291,8 +291,6 @@ class ModuleSASL : public Module
                        sasl_->Abort();
                        authExt.unset(user);
                }
-
-               return MOD_RES_PASSTHRU;
        }
 
        Version GetVersion()