This covers the code changes for the datadir move (which is now finished)

Based on darix' patch I wrote this. Modperl's changes were not tested since I
didn't find someone who could test it. Well...

Ah and btw it regenerates configure


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@902 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-12-12 21:15:44 +00:00
parent 608fbdbdb0
commit 1360effd31
8 changed files with 105 additions and 72 deletions
+6 -4
View File
@@ -238,8 +238,9 @@ public:
void SetupZNCScript()
{
CString sModule = CZNC::Get().FindModPath( "modperl.pm" );
if ( !sModule.empty() )
CString sModule, sTmp;
if ( CZNC::Get().FindModPath( "modperl.pm", sModule, sTmp) )
{
CString sBuffer, sScript;
CFile cFile( sModule );
@@ -1035,8 +1036,9 @@ void CModPerl::LoadPerlMod( const CString & sModule )
return;
}
CString sModPath = CZNC::Get().FindModPath( sModule );
if ( sModPath.empty() )
CString sModPath, sTmp;
if ( !CZNC::Get().FindModPath(sModule, sModPath, sTmp))
PutStatus( "No such module " + sModule );
else
{