From 9b5f6d3c45987f29a6270b0cc3e8327c232ab991 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Jun 2012 16:23:17 -0400 Subject: Remove ExtensibleString everywhere --- modules/extra/m_ldap_authentication.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'modules/extra') 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 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(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("m_ldap_authentication_dn"); + Anope::string *dn = u->Account()->GetExt *>("m_ldap_authentication_dn"); if (!dn || dn->empty()) return; -- cgit