mirror of
https://github.com/znc/znc.git
synced 2026-08-08 18:03:22 +02:00
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:
@@ -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, ":");
|
||||
|
||||
Reference in New Issue
Block a user