summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap_authentication.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-07-21 00:37:21 -0400
committerAdam <Adam@anope.org>2013-07-21 00:37:21 -0400
commite11abdc4f00b19feae7830d4de6098e282e7eb39 (patch)
treee4e6b48a1fc0ed5a205b7c89cd984f3e24f111d3 /modules/extra/m_ldap_authentication.cpp
parent5aac04dffe1aafc3f6c26828844fdb6d42dc66c8 (diff)
Fix m_ldap service names from defaulting ldap/ldap/main
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r--modules/extra/m_ldap_authentication.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp
index 7fe44b8e0..e3613051f 100644
--- a/modules/extra/m_ldap_authentication.cpp
+++ b/modules/extra/m_ldap_authentication.cpp
@@ -74,7 +74,7 @@ class IdentifyInterface : public LDAPInterface
}
catch (const LDAPException &ex)
{
- Log(this->owner) << "m_ldap_authentication: Error binding after search: " << ex.GetReason();
+ Log(this->owner) << "Error binding after search: " << ex.GetReason();
}
}
break;
@@ -94,7 +94,7 @@ class IdentifyInterface : public LDAPInterface
}
catch (const LDAPException &ex)
{
- Log(this->owner) << "m_ldap_authentication: Unable to search for " << sf << ": " << ex.GetReason();
+ Log(this->owner) << "Unable to search for " << sf << ": " << ex.GetReason();
}
}
else
@@ -168,19 +168,19 @@ class OnIdentifyInterface : public LDAPInterface
BotInfo *NickServ = Config->GetClient("NickServ");
if (NickServ)
u->SendMessage(NickServ, _("Your email has been updated to \002%s\002"), email.c_str());
- Log(this->owner) << "m_ldap_authentication: Updated email address for " << u->nick << " (" << u->Account()->display << ") to " << email;
+ Log(this->owner) << "Updated email address for " << u->nick << " (" << u->Account()->display << ") to " << email;
}
}
catch (const LDAPException &ex)
{
- Log(this->owner) << "m_ldap_authentication: " << ex.GetReason();
+ Log(this->owner) << ex.GetReason();
}
}
void OnError(const LDAPResult &r) anope_override
{
this->requests.erase(r.id);
- Log(this->owner) << "m_ldap_authentication: " << r.error;
+ Log(this->owner) << r.error;
}
};
@@ -191,12 +191,12 @@ class OnRegisterInterface : public LDAPInterface
void OnResult(const LDAPResult &r) anope_override
{
- Log(this->owner) << "m_ldap_authentication: Successfully added newly created account to LDAP";
+ Log(this->owner) << "Successfully added newly created account to LDAP";
}
void OnError(const LDAPResult &r) anope_override
{
- Log(this->owner) << "m_ldap_authentication: Error adding newly created account to LDAP: " << r.getError();
+ Log(this->owner) << "Error adding newly created account to LDAP: " << r.getError();
}
};
@@ -238,7 +238,7 @@ class NSIdentifyLDAP : public Module
if (!email_attribute.empty())
/* Don't complain to users about how they need to update their email, we will do it for them */
- config->GetBlock("nickserv")->Set("forceemail", "false");
+ config->GetModule("nickserv")->Set("forceemail", "false");
}
EventReturn OnPreCommand(CommandSource &source, Command *command, std::vector<Anope::string> &params) anope_override