From 35394275f27b06c2e664d5cc75270757ff1a1438 Mon Sep 17 00:00:00 2001 From: silverleo Date: Fri, 27 Feb 2009 19:52:31 +0000 Subject: [PATCH] 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 --- Client.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Client.cpp b/Client.cpp index e2638312..b8035459 100644 --- a/Client.cpp +++ b/Client.cpp @@ -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, ":");