summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/modules/sasl.h4
-rw-r--r--modules/m_sasl.cpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/include/modules/sasl.h b/include/modules/sasl.h
index ec6d741ca..eca31d4af 100644
--- a/include/modules/sasl.h
+++ b/include/modules/sasl.h
@@ -92,7 +92,7 @@ namespace SASL
Session *s = sasl->GetSession(uid);
if (s)
{
- Log(Config->GetClient("NickServ")) << "A user identified to account " << this->GetAccount() << " using SASL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user identified to account " << this->GetAccount() << " using SASL";
sasl->Succeed(s, na->nc);
delete s;
}
@@ -117,7 +117,7 @@ namespace SASL
else if (na->nc->HasExt("NS_SUSPENDED"))
accountstatus = "suspended ";
- Log(Config->GetClient("NickServ")) << "A user failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user failed to identify for " << accountstatus << "account " << this->GetAccount() << " using SASL";
}
};
}
diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp
index ddfd84cbf..1891f8367 100644
--- a/modules/m_sasl.cpp
+++ b/modules/m_sasl.cpp
@@ -107,12 +107,13 @@ class External : public Mechanism
NickCore *nc = certs->FindAccountFromCert(mysess->cert);
if (!nc || nc->HasExt("NS_SUSPENDED"))
{
+ Log(Config->GetClient("NickServ"), "sasl") << "A user failed to identify to account " << nc->display << " using SASL EXTERNAL";
sasl->Fail(sess);
delete sess;
return;
}
- Log(Config->GetClient("NickServ")) << "A user identified to account " << nc->display << " using SASL EXTERNAL";
+ Log(Config->GetClient("NickServ"), "sasl") << "A user identified to account " << nc->display << " using SASL EXTERNAL";
sasl->Succeed(sess, nc);
delete sess;
}