diff options
author | Zoddo <zoddo.ino@gmail.com> | 2016-10-02 13:56:37 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-02 13:56:37 -0400 |
commit | ee7af884c7909c30839d7b6ceb47abdbdde4ed97 (patch) | |
tree | 6b300b9a6bb471286b63f3ed4b1e33d8cb1255b1 /modules/sasl.cpp | |
parent | 33ef08b8a0fb910fa7fd99584dbae88630738a3e (diff) |
Send vident/vhost in SVSLOGIN with SASL
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r-- | modules/sasl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp index 42d3bd9f3..f07026b9e 100644 --- a/modules/sasl.cpp +++ b/modules/sasl.cpp @@ -238,13 +238,14 @@ class SASLService : public SASL::Service, public Timer // 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); + NickServ::Nick *na = NickServ::FindNick(nc->GetDisplay()); if (user) { - user->Login(nc); + user->Identify(na); } else { - IRCD->SendSVSLogin(session->uid, nc->GetDisplay()); + IRCD->SendSVSLogin(session->uid, nc->GetDisplay(), na->GetVhostIdent(), na->GetVhostHost()); } this->SendMessage(session, "D", "S"); } |