1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 15:43:15 +02:00

Fix logging into accounts with SASL on servers that support reauth.

This commit is contained in:
Peter Powell
2016-02-28 13:22:19 +00:00
parent 413b38b1c1
commit 91762524e2
+11 -1
View File
@@ -223,7 +223,17 @@ class SASLService : public SASL::Service, public Timer
void Succeed(Session *session, NickCore *nc) anope_override
{
IRCD->SendSVSLogin(session->uid, nc->display);
// If the user is already introduced then we log them in now.
// Otherwise, we send an SVSLOGIN to log them in later.
User *user = User::Find(session->uid);
if (user)
{
user->Login(nc);
}
else
{
IRCD->SendSVSLogin(session->uid, nc->display);
}
this->SendMessage(session, "D", "S");
}