mirror of
https://github.com/znc/znc.git
synced 2026-08-02 23:12:46 +02:00
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:
+4
-1
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user