mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-02 06:10:03 -04:00
Add 906, sasl aborted
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9157 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
5c8964c355
commit
8793de7773
@ -59,8 +59,8 @@ class ModuleSASL : public Module
|
|||||||
ModuleSASL(InspIRCd* Me)
|
ModuleSASL(InspIRCd* Me)
|
||||||
: Module(Me)
|
: Module(Me)
|
||||||
{
|
{
|
||||||
Implementation eventlist[] = { I_OnEvent };
|
Implementation eventlist[] = { I_OnEvent, I_OnUserRegister };
|
||||||
ServerInstance->Modules->Attach(eventlist, this, 1);
|
ServerInstance->Modules->Attach(eventlist, this, 2);
|
||||||
|
|
||||||
sasl = new CommandAuthenticate(ServerInstance, this);
|
sasl = new CommandAuthenticate(ServerInstance, this);
|
||||||
ServerInstance->AddCommand(sasl);
|
ServerInstance->AddCommand(sasl);
|
||||||
@ -69,6 +69,14 @@ class ModuleSASL : public Module
|
|||||||
ServerInstance->Logs->Log("m_sasl", DEFAULT, "WARNING: m_services_account.so and m_cap.so are not loaded! m_sasl.so will NOT function correctly until these two modules are loaded!");
|
ServerInstance->Logs->Log("m_sasl", DEFAULT, "WARNING: m_services_account.so and m_cap.so are not loaded! m_sasl.so will NOT function correctly until these two modules are loaded!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual int OnUserRegister(User *user)
|
||||||
|
{
|
||||||
|
if (user->GetExt("sasl"))
|
||||||
|
{
|
||||||
|
user->WriteServ("906 %s :SASL authentication aborted", user->nick);
|
||||||
|
user->Shrink("sasl");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
virtual ~ModuleSASL()
|
virtual ~ModuleSASL()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user