Skip to content

Commit

Permalink
Merge pull request #155 from SaberUK/2.0+sasl-reauth
Browse files Browse the repository at this point in the history
Fix logging into accounts with SASL on servers that support reauth.
  • Loading branch information
Adam- committed Mar 15, 2016
2 parents 176e0e4 + 9176252 commit 9790271
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion modules/m_sasl.cpp
Expand Up @@ -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");
}

Expand Down

0 comments on commit 9790271

Please sign in to comment.