mirror of
https://github.com/znc/znc.git
synced 2026-05-03 03:52:33 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user