diff options
author | Daniel Vassdal <shutter@canternet.org> | 2014-01-31 01:15:34 -0800 |
---|---|---|
committer | Daniel Vassdal <shutter@canternet.org> | 2014-01-31 01:41:27 -0800 |
commit | 405b41ec87d5068821ce065f1d3def307184051e (patch) | |
tree | 5060e3323db0cbe19e8820959d0fcf217c4ae2b4 /modules/protocol/unreal.cpp | |
parent | bacb276181c008069468ebe6b7368b3a8ba7f90b (diff) |
protocol/(inspircd12/unreal/charybdis): Have SASL login in on the account name instead of nick alias
Diffstat (limited to 'modules/protocol/unreal.cpp')
-rw-r--r-- | modules/protocol/unreal.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/protocol/unreal.cpp b/modules/protocol/unreal.cpp index 379be18a5..00f7cc586 100644 --- a/modules/protocol/unreal.cpp +++ b/modules/protocol/unreal.cpp @@ -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"; } |