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;