summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-03-19 18:55:32 -0400
committerAdam <Adam@anope.org>2017-03-19 18:55:32 -0400
commit0fcc66711bc0ae31469bd67044d968c33bacb824 (patch)
treebab07874bb7387dc8f539eee27c81c1fc5306b4f /include
parent8d9574e3061d7728b035f77a50995b87ba1c37dd (diff)
m_sasl: pass module to logger
Diffstat (limited to 'include')
-rw-r--r--include/account.h1
-rw-r--r--include/modules/sasl.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/account.h b/include/account.h
index 7a0f8a61d..b6b5cdbe3 100644
--- a/include/account.h
+++ b/include/account.h
@@ -246,6 +246,7 @@ class CoreExport IdentifyRequest
virtual void OnSuccess() = 0;
virtual void OnFail() = 0;
+ Module *GetOwner() const { return owner; }
const Anope::string &GetAccount() const { return account; }
const Anope::string &GetPassword() const { return password; }
diff --git a/include/modules/sasl.h b/include/modules/sasl.h
index 249a4c3b0..b4fbe0d94 100644
--- a/include/modules/sasl.h
+++ b/include/modules/sasl.h
@@ -102,7 +102,7 @@ namespace SASL
if (!hostname.empty() && !ip.empty())
user = hostname + " (" + ip + ")";
- Log(Config->GetClient("NickServ"), "sasl") << user << " identified to account " << this->GetAccount() << " using SASL";
+ Log(this->GetOwner(), "sasl", Config->GetClient("NickServ")) << user << " identified to account " << this->GetAccount() << " using SASL";
sasl->Succeed(s, na->nc);
delete s;
}
@@ -133,7 +133,7 @@ namespace SASL
if (!hostname.empty() && !ip.empty())
user = hostname + " (" + ip + ")";
- Log(Config->GetClient("NickServ"), "sasl") << user << " failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
+ Log(this->GetOwner(), "sasl", Config->GetClient("NickServ")) << user << " failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
}
};
}