diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-02-11 17:04:26 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-02-11 17:04:26 +0100 |
commit | c19e9d0edbb1be9d5fd6f281bce054066fc4a003 (patch) | |
tree | b461dadef2c80424176ce0b6a51ff7451f2ac792 /include/modules | |
parent | f3ef8a230cf3a0e3c3f75f7e37d2a1945e531754 (diff) |
Convert the SASL fallback event to use the new cross-module event system
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/sasl.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/modules/sasl.h b/include/modules/sasl.h index 321711a68..0a7b19a70 100644 --- a/include/modules/sasl.h +++ b/include/modules/sasl.h @@ -19,13 +19,15 @@ #pragma once -class SASLFallback : public Event +#include "event.h" + +class SASLEventListener : public Events::ModuleEventListener { public: - const parameterlist& params; - SASLFallback(Module* me, const parameterlist& p) - : Event(me, "sasl_fallback"), params(p) + SASLEventListener(Module* mod) + : ModuleEventListener(mod, "event/sasl") { - Send(); } + + virtual void OnSASLAuth(const parameterlist& params) = 0; }; |