From a29b4762bf6b06866985adca335e4112d97cea8d Mon Sep 17 00:00:00 2001 From: prozacx Date: Tue, 20 Sep 2005 01:55:36 +0000 Subject: [PATCH] Removed FindModPath()... use CZNC's instead git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@511 726aef4b-f618-498e-8847-2d620e286838 --- User.cpp | 24 ------------------------ User.h | 1 - 2 files changed, 25 deletions(-) diff --git a/User.cpp b/User.cpp index ed80d0d9..cae13b46 100644 --- a/User.cpp +++ b/User.cpp @@ -762,30 +762,6 @@ const CString& CUser::GetVHost() const { return m_sVHost; } const CString& CUser::GetPass() const { return m_sPass; } bool CUser::IsPassHashed() const { return m_bPassHashed; } -CString CUser::FindModPath(const CString& sModule) const { - CString sModPath = CZNC::Get().GetCurPath() + "/modules/" + sModule; - sModPath += (sModule.find(".") == CString::npos) ? ".so" : ""; - - if (!CFile::Exists(sModPath)) { - DEBUG_ONLY(cout << "[" << sModPath << "] Not found..." << endl); - sModPath = CZNC::Get().GetModPath() + "/" + sModule; - sModPath += (sModule.find(".") == CString::npos) ? ".so" : ""; - - if (!CFile::Exists(sModPath)) { - DEBUG_ONLY(cout << "[" << sModPath << "] Not found..." << endl); - sModPath = _MODDIR_ + CString("/") + sModule; - sModPath += (sModule.find(".") == CString::npos) ? ".so" : ""; - - if (!CFile::Exists(sModPath)) { - DEBUG_ONLY(cout << "[" << sModPath << "] Not found... giving up!" << endl); - return ""; - } - } - } - - return sModPath; -} - bool CUser::ConnectPaused() { if (!m_uConnectTime) { m_uConnectTime = time(NULL); diff --git a/User.h b/User.h index 29975b03..bea8bd19 100644 --- a/User.h +++ b/User.h @@ -109,7 +109,6 @@ public: bool IsPassHashed() const; const set& GetAllowedHosts() const; - CString FindModPath(const CString& sModule) const; const CString& GetUserPath() const { if (!CFile::Exists(m_sUserPath)) { CUtils::MakeDir(m_sUserPath); } return m_sUserPath; } const CString& GetDLPath() const { if (!CFile::Exists(m_sDLPath)) { CUtils::MakeDir(m_sDLPath); } return m_sDLPath; } CString GetPemLocation() const;