1
0
mirror of https://github.com/anope/anope.git synced 2026-07-05 18:03:13 +02:00

Merge pull request #174 from Techman-/2.0+inspsasl

InspIRCd: Send CHGIDENT/CHGHOST on SVSLOGIN
This commit is contained in:
Adam
2017-05-27 12:29:12 -04:00
committed by GitHub
+5
View File
@@ -410,6 +410,11 @@ class InspIRCd12Proto : public IRCDProto
void SendSVSLogin(const Anope::string &uid, const Anope::string &acc, const Anope::string &vident, const Anope::string &vhost) anope_override
{
UplinkSocket::Message(Me) << "METADATA " << uid << " accountname :" << acc;
if (!vident.empty())
UplinkSocket::Message(Me) << "ENCAP " << uid.substr(0, 3) << " CHGIDENT " << uid << " " << vident;
if (!vhost.empty())
UplinkSocket::Message(Me) << "ENCAP " << uid.substr(0, 3) << " CHGHOST " << uid << " " << vhost;
SASLUser su;
su.uid = uid;