From 367fb49734f667e4c0cf5cf38bd88b4f45732722 Mon Sep 17 00:00:00 2001 From: imaginos Date: Wed, 6 Jan 2010 05:37:35 +0000 Subject: [PATCH] couple of additional tweaks, namely missing the last check on getpass git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1692 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index 54e705db..21443265 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -61,13 +61,18 @@ public: char *pPass = getpass( "Enter pass for savebuff: " ); if( pPass ) m_sPassword = CBlowfish::MD5( pPass ); + else + { + m_bBootError = true; + sMessage = "Nothing retrieved from console. aborting"; + } } else if( sArgs.empty() ) m_sPassword = CBlowfish::MD5( CRYPT_LAME_PASS ); else m_sPassword = CBlowfish::MD5(sArgs); - return true; + return( !m_bBootError ); } virtual void OnIRCConnected() @@ -156,6 +161,10 @@ public: } } } + else + { + PutModule( "Password is unset usually meaning the decryption failed. You can setpass to the appropriate pass and things should start working, or setpass to a new pass and save to reinstantiate" ); + } } virtual void OnModCommand(const CString& sCmdLine)