1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 00:23:12 +02:00

InspIRCd: Send CHGIDENT/CHGHOST on SVSLOGIN

This commit is contained in:
Michael Hazell
2016-08-11 23:56:19 -04:00
parent 9c0b843665
commit 3b62c8f3e2
+5
View File
@@ -409,6 +409,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;