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
This commit is contained in:
imaginos
2010-01-06 05:37:35 +00:00
parent 12ce7f1c74
commit 367fb49734

View File

@@ -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)