ZNC usernames can't have a : and passwords that have a : can break anyways so we can chomp it from the beginning to please CGames.

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1403 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2009-02-27 19:52:31 +00:00
parent d7aa797a49
commit 35394275f2
+2
View File
@@ -88,6 +88,8 @@ void CClient::ReadLine(const CString& sData) {
if (!IsAttached()) {
m_bGotPass = true;
m_sPass = sLine.Token(1);
if (m_sPass.Left(1) == ":")
m_sPass.LeftChomp();
if (m_sPass.find(":") != CString::npos) {
m_sUser = m_sPass.Token(0, false, ":");