Added Set/GetArgs() for telling the args a mod was loaded with

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@437 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-07-18 01:58:44 +00:00
parent 4484999c26
commit 3fbb717511
2 changed files with 4 additions and 11 deletions

View File

@@ -520,16 +520,6 @@ void CModules::UnloadAll() {
}
}
bool CModules::OnLoad(const CString& sArgs) {
for (unsigned int a = 0; a < size(); a++) {
if (!(*this)[a]->OnLoad(sArgs)) {
return false;
}
}
return true;
}
bool CModules::OnBoot() {
for (unsigned int a = 0; a < size(); a++) {
if (!(*this)[a]->OnBoot()) {
@@ -806,6 +796,7 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
return false;
}
pModule->SetArgs(sArgs);
sRetMsg = "Loaded module [" + sModule + "] [" + sModPath + "]";
return true;
#endif // !_MODULES