Move module data files to own dir.

This commit is contained in:
Alexey Sokolov
2011-03-06 12:32:14 +06:00
parent 3d3235743d
commit 3a838d1493
17 changed files with 8 additions and 12 deletions
+2 -2
View File
@@ -1064,7 +1064,7 @@ CModules::ModDirList CModules::GetModDirs() {
#ifdef RUN_FROM_SOURCE
// ./modules
sDir = CZNC::Get().GetCurPath() + "/modules/";
ret.push(std::make_pair(sDir, sDir));
ret.push(std::make_pair(sDir, sDir + "data/"));
// ./modules/extra
sDir = CZNC::Get().GetCurPath() + "/modules/extra/";
@@ -1076,7 +1076,7 @@ CModules::ModDirList CModules::GetModDirs() {
ret.push(std::make_pair(sDir, sDir));
// <moduledir> and <datadir> (<prefix>/lib/znc)
ret.push(std::make_pair(_MODDIR_ + CString("/"), _DATADIR_ + CString("/")));
ret.push(std::make_pair(_MODDIR_ + CString("/"), _DATADIR_ + CString("/modules/")));
return ret;
}