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:
+11
-1
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user