Move module templates to DATADIR

The file hierarchy standard wants that!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1982 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-05-13 16:51:17 +00:00
parent 0c0c51172e
commit fbe5dd10e7
4 changed files with 14 additions and 6 deletions

View File

@@ -454,6 +454,12 @@ CString CWebSock::GetModWebPath(const CModule* pModule) const {
// ...and set sModDir to the dir in which sModPath resides
CString sModDir = sModPath.substr(0, pos);
// Check if module is loaded from ~/.znc/modules or from source or from installed prefix
if (sModDir.Equals(_MODDIR_)) {
// Loaded from installed prefix
return CString(_DATADIR_) + "/www/" + pModule->GetModName();
}
return sModDir + "/www/" + pModule->GetModName();
}