mirror of
https://github.com/znc/znc.git
synced 2026-04-30 18:42:25 +02:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user