Make CModule::DelNV() return false if it didn't remove anything

This fixes e.g. <*crypt> Target [543534532] deleted

Thanks to SilverLeo for the patch.


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1006 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-04-01 08:55:44 +00:00
parent 9b757c6f6a
commit cbdfaf0ed3

View File

@@ -281,6 +281,8 @@ bool CModule::DelNV(const CString & sName, bool bWriteToDisk) {
if (it != m_mssRegistry.end()) {
m_mssRegistry.erase(it);
} else {
return false;
}
if (bWriteToDisk) {