From fd5dd4c3b619755ca1ff9d99cb5f58e1e58bdef6 Mon Sep 17 00:00:00 2001 From: psychon Date: Sun, 21 Dec 2008 17:10:25 +0000 Subject: [PATCH] Don't append a slash to the paths returns from CZNC::Get*Path() The old versions didn't do this either and thus we used two slashes. While this doesn't hurt, it doesn't look good either. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1299 726aef4b-f618-498e-8847-2d620e286838 --- znc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/znc.cpp b/znc.cpp index 38d25fcf..a7a03d68 100644 --- a/znc.cpp +++ b/znc.cpp @@ -441,7 +441,7 @@ void CZNC::InitDirs(const CString& sArgvPath, const CString& sDataDir) { } CString CZNC::GetConfPath() const { - CString sConfPath = m_sZNCPath + "/configs/"; + CString sConfPath = m_sZNCPath + "/configs"; if (!CFile::Exists(sConfPath)) { CDir::MakeDir(sConfPath); } @@ -450,7 +450,7 @@ CString CZNC::GetConfPath() const { } CString CZNC::GetUserPath() const { - CString sUserPath = m_sZNCPath + "/users/"; + CString sUserPath = m_sZNCPath + "/users"; if (!CFile::Exists(sUserPath)) { CDir::MakeDir(sUserPath); } @@ -459,7 +459,7 @@ CString CZNC::GetUserPath() const { } CString CZNC::GetModPath() const { - CString sModPath = m_sZNCPath + "/modules/"; + CString sModPath = m_sZNCPath + "/modules"; if (!CFile::Exists(sModPath)) { CDir::MakeDir(sModPath);