summaryrefslogtreecommitdiff
path: root/modules/sasl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r--modules/sasl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/sasl.cpp b/modules/sasl.cpp
index 0cc81d235..bd2f1a9ea 100644
--- a/modules/sasl.cpp
+++ b/modules/sasl.cpp
@@ -20,6 +20,7 @@
#include "module.h"
#include "modules/sasl.h"
#include "modules/nickserv/cert.h"
+#include "modules/hostserv.h"
using namespace SASL;
@@ -245,7 +246,7 @@ class SASLService : public SASL::Service, public Timer
}
else
{
- HostServ::VHost *vhost = na->GetVHost();
+ HostServ::VHost *vhost = HostServ::FindVHost(na->GetAccount());
IRCD->SendSVSLogin(session->uid, nc->GetDisplay(), vhost ? vhost->GetIdent() : "", vhost ? vhost->GetHost() : "");
}
this->SendMessage(session, "D", "S");