diff options
| author | Adam <adam@sigterm.info> | 2014-01-31 02:43:26 -0800 |
|---|---|---|
| committer | Adam <adam@sigterm.info> | 2014-01-31 02:43:26 -0800 |
| commit | 4455d4346c6b806d9b0754c1dffb6adf9e90887a (patch) | |
| tree | 5060e3323db0cbe19e8820959d0fcf217c4ae2b4 /modules/protocol/inspircd12.cpp | |
| parent | bacb276181c008069468ebe6b7368b3a8ba7f90b (diff) | |
| parent | 405b41ec87d5068821ce065f1d3def307184051e (diff) | |
Merge pull request #42 from ShutterQuick/2.0+saslfix
Have SASL login in on the account name instead of nick alias
Diffstat (limited to 'modules/protocol/inspircd12.cpp')
| -rw-r--r-- | modules/protocol/inspircd12.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/protocol/inspircd12.cpp b/modules/protocol/inspircd12.cpp index 45a00e400..328049c64 100644 --- a/modules/protocol/inspircd12.cpp +++ b/modules/protocol/inspircd12.cpp @@ -857,7 +857,12 @@ struct IRCDMessageEncap : IRCDMessage void OnSuccess() anope_override { - UplinkSocket::Message(Me) << "METADATA " << this->uid << " accountname :" << this->GetAccount(); + Anope::string accountname = GetAccount(); + NickAlias *na = NickAlias::Find(accountname); + if (na) + accountname = na->nc->display; + + UplinkSocket::Message(Me) << "METADATA " << this->uid << " accountname :" << accountname; UplinkSocket::Message(Me) << "ENCAP " << this->uid.substr(0, 3) << " SASL " << Me->GetSID() << " " << this->uid << " D S"; SASLUser su; |
