diff options
author | Adam <Adam@anope.org> | 2016-12-19 19:13:24 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-19 19:13:24 -0500 |
commit | d0cd749a70646f2c2bbd616a9934fada22ad1ffd (patch) | |
tree | 497b48835e6ff7cb64c5e23dcd6248ed133fde30 /src/modules/m_sasl.cpp | |
parent | 4b8f3dd68f7c3a273c1a892c0de54ea01e48db3e (diff) |
m_sasl: send host/ip info
Diffstat (limited to 'src/modules/m_sasl.cpp')
-rw-r--r-- | src/modules/m_sasl.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 649c21809..db96f9dfa 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -51,10 +51,26 @@ class SaslAuthenticator SaslResult result; bool state_announced; + void SendHostIP() + { + parameterlist params; + params.push_back(sasl_target); + params.push_back("SASL"); + params.push_back(user->uuid); + params.push_back("*"); + params.push_back("H"); + params.push_back(user->host); + params.push_back(user->GetIPString()); + + SendSASL(params); + } + public: SaslAuthenticator(User* user_, const std::string& method) : user(user_), state(SASL_INIT), state_announced(false) { + SendHostIP(); + parameterlist params; params.push_back(sasl_target); params.push_back("SASL"); |