summaryrefslogtreecommitdiff
path: root/src/modules/m_sasl.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2009-09-02 00:48:48 +0000
commit24731c63b6320be22f7b3220236271fa7476b975 (patch)
tree615959bfd36dd30bc5c067c4501dbfb8a2e8cb8b /src/modules/m_sasl.cpp
parent79f9faeec84fbcb704b45811b9851148ab1cb20b (diff)
Add Module* creator to Command and ModeHandler
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r--src/modules/m_sasl.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp
index 08f136374..45984b230 100644
--- a/src/modules/m_sasl.cpp
+++ b/src/modules/m_sasl.cpp
@@ -27,7 +27,6 @@ class SaslAuthenticator : public classbase
{
private:
InspIRCd *ServerInstance;
- Module *Creator;
std::string agent;
User *user;
SaslState state;
@@ -36,7 +35,7 @@ class SaslAuthenticator : public classbase
public:
SaslAuthenticator(User *user_, std::string method, InspIRCd *instance, Module *ctor)
- : ServerInstance(instance), Creator(ctor), user(user_), state(SASL_INIT), state_announced(false)
+ : ServerInstance(instance), user(user_), state(SASL_INIT), state_announced(false)
{
this->user->Extend("sasl_authenticator", this);
@@ -158,11 +157,9 @@ class SaslAuthenticator : public classbase
class CommandAuthenticate : public Command
{
- Module* Creator;
public:
- CommandAuthenticate (InspIRCd* Instance, Module* creator) : Command(Instance,"AUTHENTICATE", 0, 1, true), Creator(creator)
+ CommandAuthenticate (InspIRCd* Instance, Module* Creator) : Command(Instance, Creator, "AUTHENTICATE", 0, 1, true)
{
- this->source = "m_sasl.so";
}
CmdResult Handle (const std::vector<std::string>& parameters, User *user)
@@ -175,7 +172,7 @@ class CommandAuthenticate : public Command
SaslAuthenticator *sasl;
if (!(user->GetExt("sasl_authenticator", sasl)))
- sasl = new SaslAuthenticator(user, parameters[0], ServerInstance, Creator);
+ sasl = new SaslAuthenticator(user, parameters[0], ServerInstance, creator);
else if (sasl->SendClientMessage(parameters) == false) // IAL abort extension --nenolod
delete sasl;
}
@@ -185,11 +182,9 @@ class CommandAuthenticate : public Command
class CommandSASL : public Command
{
- Module* Creator;
public:
- CommandSASL(InspIRCd* Instance, Module* creator) : Command(Instance, "SASL", 0, 2), Creator(creator)
+ CommandSASL(InspIRCd* Instance, Module* Creator) : Command(Instance, Creator, "SASL", 0, 2)
{
- this->source = "m_sasl.so";
this->disabled = true; // should not be called by users
}