This fixes sf.net bug 1765573 which is a NULL pointer dereference.

Patch was written/tested by x-x and I did the indentation.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@817 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-08-05 19:43:25 +00:00
parent ac805c59a9
commit fd8570454e

View File

@@ -69,6 +69,11 @@ void CClient::ReadLine(const CString& sData) {
return; // Don't forward this msg. ZNC will handle nick changes until auth is complete
}
if (!m_pIRCSock) {
// No need to check against IRC nick or to forward it
return;
}
if ((m_pUser) && (sNick.CaseCmp(m_pUser->GetNick()) == 0)) {
m_uKeepNickCounter++;
// If the user is changing his nick to the conifg nick, set keepnick to the config value