From 2baac31fd9cd3582f0ea3d6b3077c0a0c03caf8e Mon Sep 17 00:00:00 2001 From: prozacx Date: Tue, 12 Apr 2005 07:33:45 +0000 Subject: [PATCH] Changed path to DataPath git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@134 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index ecb023d9..0069066a 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -1,4 +1,5 @@ #include "main.h" +#include "znc.h" #include "User.h" #include "Nick.h" #include "Modules.h" @@ -25,6 +26,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.3 2005/04/12 07:33:45 prozacx + * Changed path to DataPath + * * Revision 1.2 2005/04/04 06:35:19 imaginos * fixed int32's that test against npos to string::size_type * @@ -213,7 +217,8 @@ public: string GetPath( const string & sChannel ) { string sBuffer = m_pUser->GetUserName() + Lower( sChannel ); - string sRet = m_pUser->GetHomePath(); + string sRet = m_pUser->GetDataPath() + "/savebuff"; + CUtils::MakeDir(sRet); sRet += "/.znc-savebuff-" + CBlowfish::MD5( sBuffer, true ); return( sRet ); }