mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Added m_sZNCPath and m_sDataPath
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@69 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -205,9 +205,11 @@ void CZNC::InitDirs(const string& sArgvPath) {
|
||||
m_sHomePath = m_sBinPath;
|
||||
}
|
||||
|
||||
m_sZNCPath = m_sHomePath + "/.znc";
|
||||
|
||||
// Other dirs that we use
|
||||
m_sDLPath = m_sBinPath + "/downloads";
|
||||
m_sModPath = m_sBinPath + "/modules";
|
||||
m_sDLPath = m_sZNCPath + "/downloads";
|
||||
m_sModPath = m_sZNCPath + "/modules";
|
||||
}
|
||||
|
||||
bool CZNC::ParseConfig(const string& sConfigFile) {
|
||||
@@ -416,7 +418,7 @@ bool CZNC::ParseConfig(const string& sConfigFile) {
|
||||
string sModName = CUtils::Token(sValue, 0);
|
||||
string sArgs = CUtils::Token(sValue, 1, true);
|
||||
|
||||
pUser->GetModules().LoadModule(sModName, sArgs, pUser, m_sBinPath, sModRet);
|
||||
pUser->GetModules().LoadModule(sModName, sArgs, pUser, sModRet);
|
||||
cout << sModRet << endl;
|
||||
#else
|
||||
cerr << "Unable to load [" << sValue << "] Modules are not enabled." << endl;
|
||||
|
||||
Reference in New Issue
Block a user