From eec21f9af813073848e16c73dc8fd7d216e4496f Mon Sep 17 00:00:00 2001 From: prozacx Date: Mon, 18 Apr 2005 00:18:46 +0000 Subject: [PATCH] Upgraded output msgs and changed path of file git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@144 726aef4b-f618-498e-8847-2d620e286838 --- modules/away.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/away.cpp b/modules/away.cpp index ae9260b7..6e52213f 100644 --- a/modules/away.cpp +++ b/modules/away.cpp @@ -20,6 +20,9 @@ * * * $Log$ + * Revision 1.5 2005/04/18 00:18:46 prozacx + * Upgraded output msgs and changed path of file + * * Revision 1.4 2005/04/02 22:22:24 imaginos * ability to change pass * @@ -67,7 +70,7 @@ public: { if ( m_sPassword.empty() ) { - char *pTmp = getpass( "Enter Encryption Key for away.so: " ); + char *pTmp = CUtils::GetPass( "Enter Encryption Key for away.so: " ); if ( pTmp ) m_sPassword = CBlowfish::MD5( pTmp ); @@ -103,7 +106,7 @@ public: } } else { - cerr << "Failed to Decrypt Messages" << endl; + CUtils::PrintError("Failed to Decrypt Messages"); return( false ); } @@ -259,7 +262,8 @@ public: string GetPath() { string sBuffer = m_pUser->GetUserName(); - string sRet = m_pUser->GetHomePath(); + string sRet = m_pUser->GetDataPath() + "/away"; + CUtils::MakeDir(sRet); sRet += "/.znc-away-" + CBlowfish::MD5( sBuffer, true ); return( sRet ); }