Let autoattach save and reload its settings when it's loaded

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@889 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-12-02 09:23:49 +00:00
parent b94f538385
commit 496e164bef

View File

@@ -31,6 +31,12 @@ public:
sChan = sArgs.Token(a++);
}
// Load out saved settings, ignore errors
MCString::iterator it;
for (it = BeginNV(); it != EndNV(); it++) {
Add(it->first);
}
return true;
}
@@ -135,6 +141,8 @@ public:
m_vsChans.push_back(sChan);
}
SetNV(sChan, "");
return true;
}
@@ -171,6 +179,8 @@ public:
m_vsChans.erase(it);
}
DelNV(sChan);
return true;
}