Make watch save its settings and add CModule::ClearNV()

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1304 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-12-26 15:12:25 +00:00
parent 458baa17f5
commit 1312e6512b
3 changed files with 61 additions and 0 deletions

View File

@@ -279,6 +279,15 @@ bool CModule::DelNV(const CString & sName, bool bWriteToDisk) {
return true;
}
bool CModule::ClearNV(bool bWriteToDisk) {
m_mssRegistry.clear();
if (bWriteToDisk) {
return SaveRegistry();
}
return true;
}
bool CModule::AddTimer(CTimer* pTimer) {
if ((!pTimer) || (FindTimer(pTimer->GetName()))) {
delete pTimer;