summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap_authentication.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-06-27 16:23:17 -0400
committerAdam <Adam@anope.org>2012-07-01 22:26:05 -0400
commit9b5f6d3c45987f29a6270b0cc3e8327c232ab991 (patch)
treec908ec5fe94d9ae51f078e3679d382ef6da71cdc /modules/extra/m_ldap_authentication.cpp
parentaf24dc605079e2a37fb013e3c1f72b0d916b61a4 (diff)
Remove ExtensibleString everywhere
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r--modules/extra/m_ldap_authentication.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp
index 97583ece3..8a42553e5 100644
--- a/modules/extra/m_ldap_authentication.cpp
+++ b/modules/extra/m_ldap_authentication.cpp
@@ -24,11 +24,6 @@ struct IdentifyInfo
user(u), command(c), source(s), params(pa), account(a), pass(p), lprov(lp), admin_bind(true) { }
};
-struct ExtensibleString : Anope::string, ExtensibleItem
-{
- ExtensibleString(const Anope::string &s) : Anope::string(s) { }
-};
-
class IdentifyInterface : public LDAPInterface
{
std::map<LDAPQuery, IdentifyInfo *> requests;
@@ -105,7 +100,7 @@ class IdentifyInterface : public LDAPInterface
u->SendMessage(bi, _("Your account \002%s\002 has been successfully created."), na->nick.c_str());
}
- na->nc->Extend("m_ldap_authentication_dn", new ExtensibleString(ii->dn));
+ na->nc->Extend("m_ldap_authentication_dn", new ExtensibleItemClass<Anope::string>(ii->dn));
enc_encrypt(ii->pass, na->nc->pass);
@@ -300,7 +295,7 @@ class NSIdentifyLDAP : public Module
if (email_attribute.empty() || !this->ldap || !u->Account()->HasExt("m_ldap_authentication_dn"))
return;
- Anope::string *dn = u->Account()->GetExt<ExtensibleString *>("m_ldap_authentication_dn");
+ Anope::string *dn = u->Account()->GetExt<ExtensibleItemClass<Anope::string> *>("m_ldap_authentication_dn");
if (!dn || dn->empty())
return;