mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
11
Modules.cpp
11
Modules.cpp
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user