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:
prozacx
2005-04-03 05:39:08 +00:00
parent a7ae4ad375
commit 933f1cc616
2 changed files with 14 additions and 7 deletions
+5 -3
View File
@@ -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;