* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2008 InspIRCd Development Team
- * See: http://www.inspircd.org/wiki/index.php/Credits
+ * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
* the file COPYING for details.
{
this->user->Extend("sasl_authenticator", this);
- std::deque<std::string> params;
+ parameterlist params;
params.push_back("*");
params.push_back("SASL");
params.push_back(user->uuid);
}
/* checks for and deals with a state change. */
- SaslState ProcessInboundMessage(std::deque<std::string> &msg)
+ SaslState ProcessInboundMessage(parameterlist &msg)
{
switch (this->state)
{
if (this->state != SASL_COMM)
return true;
- std::deque<std::string> params;
+ parameterlist params;
params.push_back("*");
params.push_back("SASL");
params.push_back(this->user->uuid);
class ModuleSASL : public Module
{
- CommandAuthenticate* sasl;
+ CommandAuthenticate sasl;
public:
ModuleSASL(InspIRCd* Me)
- : Module(Me)
+ : Module(Me), sasl(Me, this)
{
Implementation eventlist[] = { I_OnEvent, I_OnUserRegister, I_OnPostConnect, I_OnUserDisconnect, I_OnCleanup };
ServerInstance->Modules->Attach(eventlist, this, 5);
- sasl = new CommandAuthenticate(ServerInstance, this);
- ServerInstance->AddCommand(sasl);
+ ServerInstance->AddCommand(&sasl);
if (!ServerInstance->Modules->Find("m_services_account.so") || !ServerInstance->Modules->Find("m_cap.so"))
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!");
if (ev->GetEventID() == "encap_received")
{
- std::deque<std::string>* parameters = (std::deque<std::string>*)ev->GetData();
+ parameterlist* parameters = (parameterlist*)ev->GetData();
if ((*parameters)[1] != "SASL")
return;