mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Move SetArgs above the OnLoad module calls so a module can reset the args.
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1329 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -805,6 +805,7 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
|
||||
|
||||
pModule->SetDescription(GetDesc());
|
||||
pModule->SetGlobal(bIsGlobal);
|
||||
pModule->SetArgs(sArgs);
|
||||
push_back(pModule);
|
||||
|
||||
bool bLoaded;
|
||||
@@ -824,8 +825,6 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
|
||||
return false;
|
||||
}
|
||||
|
||||
pModule->SetArgs(sArgs);
|
||||
|
||||
if (!sRetMsg.empty()) {
|
||||
sRetMsg = "Loaded module [" + sModule + "] [" + sRetMsg + "] [" + sModPath + "]";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user