From 3a5a17a2dc77c9e56aa57400e2b06df3b33e5441 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 24 Apr 2005 08:05:41 +0000 Subject: [PATCH] Fixed literal strings of 'savebuff' to now use GetModName() and removed redundant prefix from filenames git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@186 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index 6edaa7f2..70972267 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -26,6 +26,9 @@ * better solution then plain text. * * $Log$ + * Revision 1.18 2005/04/24 08:05:41 prozacx + * Fixed literal strings of 'savebuff' to now use GetModName() and removed redundant prefix from filenames + * * Revision 1.17 2005/04/23 18:24:38 imaginos * only work on chans where keepbuffer is true * @@ -135,7 +138,7 @@ public: { if ( m_sPassword.empty() ) { - char *pTmp = CUtils::GetPass( "Enter Encryption Key for savebuff.so: " ); + char *pTmp = CUtils::GetPass( "Enter Encryption Key for " + GetModName() + ".so" ); if ( pTmp ) m_sPassword = CBlowfish::MD5( pTmp ); @@ -285,9 +288,9 @@ public: string GetPath( const string & sChannel ) { string sBuffer = m_pUser->GetUserName() + Lower( sChannel ); - string sRet = m_pUser->GetDataPath() + "/savebuff"; + string sRet = m_pUser->GetDataPath() + "/" + GetModName(); CUtils::MakeDir(sRet); - sRet += "/.znc-savebuff-" + CBlowfish::MD5( sBuffer, true ); + sRet += "/" + CBlowfish::MD5( sBuffer, true ); return( sRet ); }