mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Renamed BinPath to CurPath
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@79 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+1
-1
@@ -497,7 +497,7 @@ bool CModules::LoadModule(const string& sModule, const string& sArgs, CUser* pUs
|
||||
return false;
|
||||
}
|
||||
|
||||
string sModPath = pUser->GetBinPath() + "/modules/" + sModule + ".so";
|
||||
string sModPath = pUser->GetCurPath() + "/modules/" + sModule + ".so";
|
||||
|
||||
if (!CFile::Exists(sModPath)) {
|
||||
DEBUG_ONLY(cout << "[" << sModPath << "] Not found..." << endl);
|
||||
|
||||
@@ -383,7 +383,7 @@ const string& CUser::GetRealName() const { return m_sRealName; }
|
||||
const string& CUser::GetVHost() const { return m_sVHost; }
|
||||
const string& CUser::GetPass() const { return m_sPass; }
|
||||
|
||||
const string& CUser::GetBinPath() const { return m_pZNC->GetBinPath(); }
|
||||
const string& CUser::GetCurPath() const { return m_pZNC->GetCurPath(); }
|
||||
const string& CUser::GetDLPath() const { return m_pZNC->GetDLPath(); }
|
||||
const string& CUser::GetModPath() const { return m_pZNC->GetModPath(); }
|
||||
const string& CUser::GetHomePath() const { return m_pZNC->GetHomePath(); }
|
||||
|
||||
@@ -81,7 +81,7 @@ public:
|
||||
const string& GetVHost() const;
|
||||
const string& GetPass() const;
|
||||
|
||||
const string& GetBinPath() const;
|
||||
const string& GetCurPath() const;
|
||||
const string& GetDLPath() const;
|
||||
const string& GetModPath() const;
|
||||
const string& GetHomePath() const;
|
||||
|
||||
+4
-1
@@ -14,6 +14,9 @@
|
||||
* Author: imaginos <imaginos@imaginos.net>
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.4 2005/04/03 07:48:31 prozacx
|
||||
* Renamed BinPath to CurPath
|
||||
*
|
||||
* Revision 1.3 2005/03/31 20:59:43 imaginos
|
||||
* typo on column
|
||||
*
|
||||
@@ -140,7 +143,7 @@ public:
|
||||
|
||||
if ( m_sPemFile.empty() )
|
||||
{
|
||||
m_sPemFile = m_pUser->GetBinPath() + "/znc.pem";
|
||||
m_sPemFile = m_pUser->GetCurPath() + "/znc.pem";
|
||||
}
|
||||
|
||||
if (!CFile::Exists(m_sPemFile)) {
|
||||
|
||||
@@ -28,7 +28,7 @@ public:
|
||||
// Getters
|
||||
TSocketManager<Csock>& GetManager() { return m_Manager; }
|
||||
unsigned int GetListenPort() const { return m_uListenPort; }
|
||||
const string& GetBinPath() const { if (!CFile::Exists(m_sBinPath)) { CUtils::MakeDir(m_sBinPath); } return m_sBinPath; }
|
||||
const string& GetCurPath() const { if (!CFile::Exists(m_sCurPath)) { CUtils::MakeDir(m_sCurPath); } return m_sCurPath; }
|
||||
const string& GetDLPath() const { if (!CFile::Exists(m_sDLPath)) { CUtils::MakeDir(m_sDLPath); } return m_sDLPath; }
|
||||
const string& GetModPath() const { if (!CFile::Exists(m_sModPath)) { CUtils::MakeDir(m_sModPath); } return m_sModPath; }
|
||||
const string& GetHomePath() const { if (!CFile::Exists(m_sHomePath)) { CUtils::MakeDir(m_sHomePath); } return m_sHomePath; }
|
||||
@@ -55,7 +55,7 @@ protected:
|
||||
map<string,CUser*> m_msUsers;
|
||||
TSocketManager<Csock> m_Manager;
|
||||
|
||||
string m_sBinPath;
|
||||
string m_sCurPath;
|
||||
string m_sDLPath;
|
||||
string m_sModPath;
|
||||
string m_sHomePath;
|
||||
|
||||
Reference in New Issue
Block a user