From 4719e2e2218a6c7c4765bc55b4d0d9202cb586ef Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 12 Jun 2005 09:04:39 +0000 Subject: [PATCH] Changed to new GetSavePath() git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@384 726aef4b-f618-498e-8847-2d620e286838 --- modules/away.cpp | 6 ++++-- modules/savebuff.cpp | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/modules/away.cpp b/modules/away.cpp index 225be1bc..bbce39ff 100644 --- a/modules/away.cpp +++ b/modules/away.cpp @@ -20,6 +20,9 @@ * * * $Log$ + * Revision 1.15 2005/06/12 09:04:39 prozacx + * Changed to new GetSavePath() + * * Revision 1.14 2005/05/26 20:42:13 prozacx * Moved GetDescription() into second argument of MODULEDEFS() * @@ -300,8 +303,7 @@ public: CString GetPath() { CString sBuffer = m_pUser->GetUserName(); - CString sRet = m_pUser->GetDataPath() + "/away"; - CUtils::MakeDir(sRet); + CString sRet = GetSavePath(); sRet += "/.znc-away-" + CBlowfish::MD5( sBuffer, true ); return( sRet ); } diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index c4f739e5..bda80b8a 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -26,6 +26,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.26 2005/06/12 09:04:39 prozacx + * Changed to new GetSavePath() + * * Revision 1.25 2005/05/26 20:42:13 prozacx * Moved GetDescription() into second argument of MODULEDEFS() * @@ -309,8 +312,7 @@ public: CString GetPath( const CString & sChannel ) { CString sBuffer = m_pUser->GetUserName() + Lower( sChannel ); - CString sRet = m_pUser->GetDataPath() + "/" + GetModName(); - CUtils::MakeDir(sRet); + CString sRet = GetSavePath(); sRet += "/" + CBlowfish::MD5( sBuffer, true ); return( sRet ); }