summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap_authentication.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r--modules/extra/m_ldap_authentication.cpp8
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;