mirror of
https://github.com/znc/znc.git
synced 2026-05-02 03:22:33 +02:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user