From: brain Date: Sat, 22 Mar 2008 00:13:18 +0000 (+0000) Subject: 'AUTHENTICATE C'? Why not authenticate C++ :) X-Git-Tag: v2.0.23~3644 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=8f087b76e032230e30b01f100b380d48aa68868f;p=user%2Fhenk%2Fcode%2Finspircd.git 'AUTHENTICATE C'? Why not authenticate C++ :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9169 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index 05206784c..ebb8b8480 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -70,19 +70,19 @@ class SaslAuthenticator { case SASL_INIT: this->agent = msg[1]; - this->user->Write("AUTHENTICATE %s", msg[4].c_str()); + this->user->Write("AUTHENTICATE %s", msg[5].c_str()); this->state = SASL_COMM; break; case SASL_COMM: if (msg[1] != this->agent) return this->state; - if (msg[3] != "D") - this->user->Write("AUTHENTICATE %s", msg[4].c_str()); + if (msg[4] != "D") + this->user->Write("AUTHENTICATE %s", msg[5].c_str()); else { this->state = SASL_DONE; - this->result = this->GetSaslResult(msg[4]); + this->result = this->GetSaslResult(msg[5]); this->AnnounceState(); }