mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Use the module save path for dcc's, and remove DLPath since it is no longer used.
This commit is contained in:
4
User.cpp
4
User.cpp
@@ -52,9 +52,8 @@ protected:
|
||||
CUser::CUser(const CString& sUserName)
|
||||
: m_sUserName(sUserName), m_sCleanUserName(MakeCleanUserName(sUserName))
|
||||
{
|
||||
// set paths that depend on the user name:
|
||||
// set path that depends on the user name:
|
||||
m_sUserPath = CZNC::Get().GetUserPath() + "/" + m_sUserName;
|
||||
m_sDLPath = m_sUserPath + "/downloads";
|
||||
|
||||
m_pIRCSock = NULL;
|
||||
m_fTimezoneOffset = 0;
|
||||
@@ -1447,5 +1446,4 @@ bool CUser::KeepBuffer() const { return m_bKeepBuffer; }
|
||||
//CString CUser::GetSkinName() const { return (!m_sSkinName.empty()) ? m_sSkinName : CZNC::Get().GetSkinName(); }
|
||||
CString CUser::GetSkinName() const { return m_sSkinName; }
|
||||
const CString& CUser::GetUserPath() const { if (!CFile::Exists(m_sUserPath)) { CDir::MakeDir(m_sUserPath); } return m_sUserPath; }
|
||||
const CString& CUser::GetDLPath() const { if (!CFile::Exists(m_sDLPath)) { CDir::MakeDir(m_sDLPath); } return m_sDLPath; }
|
||||
// !Getters
|
||||
|
||||
Reference in New Issue
Block a user