mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
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:
+6
-4
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user