diff options
author | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-09 19:51:39 -0400 |
commit | e7dd7159b1e1ab5b3edabc44ece5338672f8fbb4 (patch) | |
tree | 9517f02ca1c29fa247f6914398f35a44052c22ff /modules/sasl.cpp | |
parent | 8ceca4fd3f9cb82bc93801d5eb682d27b2ad2f54 (diff) |
Make vhosts assignable to accounts, not nicks. Allow multiple vhosts per account.
Diffstat (limited to 'modules/sasl.cpp')
-rw-r--r-- | modules/sasl.cpp | 3 |
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"); |