From 1f2399de364c09adcce4193895cd362d80ffdfc5 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 25 Sep 2011 04:19:15 -0400 Subject: Added a new database format and sqlite support. Also moved db-convert to a module. --- modules/extra/m_ldap_authentication.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/extra/m_ldap_authentication.cpp') 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; -- cgit