diff options
author | Adam <Adam@anope.org> | 2011-09-25 04:19:15 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-09-25 04:19:15 -0400 |
commit | 1f2399de364c09adcce4193895cd362d80ffdfc5 (patch) | |
tree | 5f40fc531f22c174b6e10bb7bc12842a4a21d30b /modules/extra/m_ldap_authentication.cpp | |
parent | 43201ead9575a74e350710bc191f4ac67366aca7 (diff) |
Added a new database format and sqlite support. Also moved db-convert to a module.
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 8a4ef2702..148ee8250 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -49,7 +49,7 @@ class IdentifyInterface : public LDAPInterface User *u = ii->user; Command *c = ii->command; - u->Extend("m_ldap_authentication_authenticated"); + u->Extend("m_ldap_authentication_authenticated", NULL); NickAlias *na = findnick(ii->account); if (na == NULL) @@ -87,7 +87,7 @@ class IdentifyInterface : public LDAPInterface User *u = ii->user; Command *c = ii->command; - u->Extend("m_ldap_authentication_error"); + u->Extend("m_ldap_authentication_error", NULL); c->Execute(ii->source, ii->params); @@ -218,12 +218,12 @@ class NSIdentifyLDAP : public Module return EVENT_CONTINUE; User *u = source->u; - if (u->GetExt("m_ldap_authentication_authenticated")) + if (u->HasExt("m_ldap_authentication_authenticated")) { u->Shrink("m_ldap_authentication_authenticated"); return EVENT_ALLOW; } - else if (u->GetExt("m_ldap_authentication_error")) + else if (u->HasExt("m_ldap_authentication_error")) { u->Shrink("m_ldap_authentication_error"); return EVENT_CONTINUE; |