diff options
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r-- | src/modules/m_sasl.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index fc4a75fe3..87d87d978 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -13,6 +13,7 @@ #include "inspircd.h" #include "m_cap.h" +#include "account.h" /* $ModDesc: Provides support for atheme SASL via AUTHENTICATE. */ @@ -83,6 +84,11 @@ class ModuleSASL : public Module target->WriteServ("AUTHENTICATE %s", line.c_str()); } } + else if (ev->GetEventID() == "account_login") + { + AccountData* ac = (AccountData*)ev->GetData(); + ac->user->WriteServ("903 %s :SASL authentication successful", ac->user->nick); + } } }; |