diff --git a/znc.cpp b/znc.cpp index e78d6cd0..b8547237 100644 --- a/znc.cpp +++ b/znc.cpp @@ -1707,13 +1707,17 @@ bool CZNC::DoRehash(CString& sError) } if (pChan) { - // TODO last not closed + sError = "Last section not properly closed. File truncated?"; + CUtils::PrintError(sError); delete pChan; + return false; } if (pUser) { - // TODO last not closed + sError = "Last section not properly closed. File truncated?"; + CUtils::PrintError(sError); delete pUser; + return false; } if (m_msUsers.empty()) {