diff options
author | Adam <Adam@anope.org> | 2012-10-27 08:12:04 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2012-10-27 08:12:04 -0400 |
commit | d6e1b92059688c8b59df0eedccfb16781d193591 (patch) | |
tree | e61ace0908bae241ea4cac18331a99b441981dad /modules/extra/m_ldap_authentication.cpp | |
parent | bb5f4555dce8bdfa7124db87c72a084c9d9416a1 (diff) |
Add a module log type
Diffstat (limited to 'modules/extra/m_ldap_authentication.cpp')
-rw-r--r-- | modules/extra/m_ldap_authentication.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/extra/m_ldap_authentication.cpp b/modules/extra/m_ldap_authentication.cpp index 5469713e2..f2140eb71 100644 --- a/modules/extra/m_ldap_authentication.cpp +++ b/modules/extra/m_ldap_authentication.cpp @@ -75,7 +75,7 @@ class IdentifyInterface : public LDAPInterface } catch (const LDAPException &ex) { - Log() << "m_ldap_authentication: Error binding after search: " << ex.GetReason(); + Log(this->owner) << "m_ldap_authentication: Error binding after search: " << ex.GetReason(); } } break; @@ -95,7 +95,7 @@ class IdentifyInterface : public LDAPInterface } catch (const LDAPException &ex) { - Log() << "m_ldap_authentication: Unable to search for " << sf << ": " << ex.GetReason(); + Log(this->owner) << "m_ldap_authentication: Unable to search for " << sf << ": " << ex.GetReason(); } } else @@ -172,19 +172,19 @@ class OnIdentifyInterface : public LDAPInterface BotInfo *bi = findbot(Config->NickServ); if (bi) u->SendMessage(bi, _("Your email has been updated to \002%s\002"), email.c_str()); - Log() << "m_ldap_authentication: Updated email address for " << u->nick << " (" << u->Account()->display << ") to " << email; + Log(this->owner) << "m_ldap_authentication: Updated email address for " << u->nick << " (" << u->Account()->display << ") to " << email; } } catch (const LDAPException &ex) { - Log() << "m_ldap_authentication: " << ex.GetReason(); + Log(this->owner) << "m_ldap_authentication: " << ex.GetReason(); } } void OnError(const LDAPResult &r) anope_override { this->requests.erase(r.id); - Log() << "m_ldap_authentication: " << r.error; + Log(this->owner) << "m_ldap_authentication: " << r.error; } }; @@ -195,12 +195,12 @@ class OnRegisterInterface : public LDAPInterface void OnResult(const LDAPResult &r) anope_override { - Log() << "m_ldap_authentication: Successfully added newly created account to LDAP"; + Log(this->owner) << "m_ldap_authentication: Successfully added newly created account to LDAP"; } void OnError(const LDAPResult &r) anope_override { - Log() << "m_ldap_authentication: Error adding newly created account to LDAP: " << r.getError(); + Log(this->owner) << "m_ldap_authentication: Error adding newly created account to LDAP: " << r.getError(); } }; @@ -268,7 +268,7 @@ class NSIdentifyLDAP : public Module catch (const LDAPException &ex) { delete ii; - Log() << "m_ldap_authentication: " << ex.GetReason(); + Log(this) << ex.GetReason(); } } @@ -288,7 +288,7 @@ class NSIdentifyLDAP : public Module } catch (const LDAPException &ex) { - Log() << "m_ldap_authentication: " << ex.GetReason(); + Log(this) << ex.GetReason(); } } @@ -325,7 +325,7 @@ class NSIdentifyLDAP : public Module } catch (const LDAPException &ex) { - Log() << "m_ldap_authentication: " << ex.GetReason(); + Log(this) << ex.GetReason(); } } }; |