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

protocol/(inspircd12/unreal/charybdis): Have SASL login in on the account name instead of nick alias

This commit is contained in:
Daniel Vassdal
2014-01-31 01:15:34 -08:00
parent bacb276181
commit 405b41ec87
3 changed files with 18 additions and 3 deletions
+6 -1
View File
@@ -881,7 +881,12 @@ struct IRCDMessageSASL : IRCDMessage
if (p == Anope::string::npos)
return;
UplinkSocket::Message(Me) << "SVSLOGIN " << this->uid.substr(0, p) << " " << this->uid << " " << this->GetAccount();
Anope::string accountname = GetAccount();
NickAlias *na = NickAlias::Find(accountname);
if (na)
accountname = na->nc->display;
UplinkSocket::Message(Me) << "SVSLOGIN " << this->uid.substr(0, p) << " " << this->uid << " " << accountname;
UplinkSocket::Message() << "SASL " << this->uid.substr(0, p) << " " << this->uid << " D S";
}