diff options
author | Adam <adam@sigterm.info> | 2016-04-14 19:17:39 -0500 |
---|---|---|
committer | Adam <adam@sigterm.info> | 2016-04-14 19:17:39 -0500 |
commit | a8f66578b1a7ee748cd67acff7f8f3f3324c0a6b (patch) | |
tree | 672e47f819dda557e1fe8e9677ea5678bff2bd94 /modules/m_sasl.cpp | |
parent | ca39aeb554ccfd394ba63666dca6118a826479f3 (diff) | |
parent | 82816cb2061afa1c3b583a0d1941a37043388de0 (diff) |
Merge pull request #161 from Zoddo/charybdis/vhost_svslogin
Send vident/vhost in SVSLOGIN with SASL
Diffstat (limited to 'modules/m_sasl.cpp')
-rw-r--r-- | modules/m_sasl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/m_sasl.cpp b/modules/m_sasl.cpp index 630c5e3ab..2e0410e7c 100644 --- a/modules/m_sasl.cpp +++ b/modules/m_sasl.cpp @@ -226,13 +226,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); + const NickAlias *na = NickAlias::Find(nc->display); if (user) { user->Login(nc); } else { - IRCD->SendSVSLogin(session->uid, nc->display); + IRCD->SendSVSLogin(session->uid, nc->display, na->GetVhostIdent(), na->GetVhostHost()); } this->SendMessage(session, "D", "S"); } |