From 45ae051e58e54f32d7cd32dbc67da943f9d7bad6 Mon Sep 17 00:00:00 2001 From: silverleo Date: Mon, 12 Jan 2009 16:15:29 +0000 Subject: [PATCH] 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 --- Modules.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules.cpp b/Modules.cpp index 13660b6a..584c8040 100644 --- a/Modules.cpp +++ b/Modules.cpp @@ -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 {