diff options
| author | 2008-03-21 19:42:08 +0000 | |
|---|---|---|
| committer | 2008-03-21 19:42:08 +0000 | |
| commit | dde67b9765bc485d807f181bba108c00f4c44dba (patch) | |
| tree | 99aa38a52b8fc6c94ad05b2087d34456377d4f5f /src/modules/m_sasl.cpp | |
| parent | Patch to change MODULES numerics, so we dont get a collision when using AUTHE... (diff) | |
| download | inspircd++-dde67b9765bc485d807f181bba108c00f4c44dba.tar.gz inspircd++-dde67b9765bc485d807f181bba108c00f4c44dba.tar.bz2 inspircd++-dde67b9765bc485d807f181bba108c00f4c44dba.zip | |
Add capability for m_services_account to broadcast login events, with the user who is logging in and their login name
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9149 e03df62e-2008-0410-955e-edbf42e46eb7
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); + } } }; |
