summaryrefslogtreecommitdiff
path: root/modules/m_sasl.cpp
diff options
context:
space:
mode:
authorZoddo <zoddo.ino@gmail.com>2016-04-10 18:24:25 +0200
committerZoddo <zoddo.ino@gmail.com>2016-04-10 18:24:25 +0200
commit82816cb2061afa1c3b583a0d1941a37043388de0 (patch)
treed0b0dd729b09e7e899ff3a5a40d275a15e971440 /modules/m_sasl.cpp
parent79e7c3f98a57b7cffc46d9a7dc250a0e6e25fc98 (diff)
Send vident/vhost in SVSLOGIN with SASL
Only charybdis seems to support that for the moment.
Diffstat (limited to 'modules/m_sasl.cpp')
-rw-r--r--modules/m_sasl.cpp3
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");
}