summaryrefslogtreecommitdiff
path: root/modules/sasl.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-30 20:41:43 -0400
committerAdam <Adam@anope.org>2016-09-30 20:43:54 -0400
commit962f312fc44e832e8d230390d1603c85a36e6031 (patch)
tree62f8df501eb0b365d41cbd5492ac104d47d88fe3 /modules/sasl.cpp
parentafff9fb0ba10c328bcf29a2222d0072ea6eb97a7 (diff)
Add sasl log category for auth log messages
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r--modules/sasl.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 8682c0fc4..a5edbaf32 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -119,12 +119,13 @@ class External : public Mechanism
NickServ::Account *nc = certs->FindAccountFromCert(mysess->cert);
if (!nc || nc->HasFieldS("NS_SUSPENDED"))
{
+ Log(Config->GetClient("NickServ"), "sasl") << "A user failed to identify using certificate " << mysess->cert << " using SASL EXTERNAL";
GetService()->Fail(sess);
delete sess;
return;
}
- Log(Config->GetClient("NickServ")) << "A user identified to account " << nc->GetDisplay() << " using SASL EXTERNAL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user identified to account " << nc->GetDisplay() << " using SASL EXTERNAL";
GetService()->Succeed(sess, nc);
delete sess;
}
@@ -280,7 +281,7 @@ void IdentifyRequestListener::OnSuccess(NickServ::IdentifyRequest *req)
Session *s = service->GetSession(uid);
if (s)
{
- Log(Config->GetClient("NickServ")) << "A user identified to account " << req->GetAccount() << " using SASL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user identified to account " << req->GetAccount() << " using SASL";
service->Succeed(s, na->GetAccount());
delete s;
}
@@ -302,7 +303,7 @@ void IdentifyRequestListener::OnFail(NickServ::IdentifyRequest *req)
else if (na->GetAccount()->HasFieldS("NS_SUSPENDED"))
accountstatus = "suspended ";
- Log(Config->GetClient("NickServ")) << "A user failed to identify for " << accountstatus << "account " << req->GetAccount() << " using SASL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user failed to identify for " << accountstatus << "account " << req->GetAccount() << " using SASL";
}
class ModuleSASL : public Module