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:
@@ -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";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user