diff options
author | Peter Powell <petpow@saberuk.com> | 2017-11-06 11:11:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-06 11:11:22 +0000 |
commit | 9375c633371ee8d25adc5cf756590077e5100bb5 (patch) | |
tree | 5926bd2f98a579e2edd598020732f684e95a942e /src/modules | |
parent | 52de083afcd1608f030551f532bdcdb1f45f1513 (diff) | |
parent | 9d4b4344b49de3c474302e8316576b759249c409 (diff) |
Merge pull request #1359 from genius3000/insp20+sasl_no_server
2.0: Inform the client when a SASL message cannot be sent
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_sasl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 0ef93ec5a..7108e0c07 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -35,6 +35,10 @@ static void SendSASL(const parameterlist& params) { if (!ServerInstance->PI->SendEncapsulatedData(params)) { + User* u = ServerInstance->FindUUID(params[2]); + if (u) + u->WriteNumeric(904, "%s :SASL authentication failed", u->nick.c_str()); + SASLFallback(NULL, params); } } |