Fix an implicit (CFile *) false (this should have been NULL for sure)

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1428 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2009-03-14 18:17:42 +00:00
parent a743dd248e
commit 5346cb5dd4
+1 -1
View File
@@ -138,7 +138,7 @@ Csock* CDCCSock::GetSockObj(const CString& sHost, unsigned short uPort) {
CFile* CDCCSock::OpenFile(bool bWrite) {
if ((m_pFile) || (m_sLocalFile.empty())) {
m_pUser->PutModule(m_sModuleName, ((bWrite) ? "DCC <- [" : "DCC -> [") + m_sRemoteNick + "][" + m_sLocalFile + "] - Unable to open file.");
return false;
return NULL;
}
m_pFile = new CFile(m_sLocalFile);