don't unwittingly insert the value if its not there

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@300 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
imaginos
2005-05-15 04:03:04 +00:00
parent 1f4f4aab64
commit ad9912f569
2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -73,7 +73,10 @@ bool CModule::SetNV( const CString & sName, const CString & sValue, bool bWriteT
CString CModule::GetNV( const CString & sName )
{
return( m_mssRegistry[sName] );
MCString::iterator it = m_mssRegistry.find( sName );
if ( it != m_mssRegistry.end() )
return( it->second );
return( "" );
}
bool CModule::DelNV( const CString & sName, bool bWriteToDisk )