mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Added OnLoad() for setting pass from config
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@143 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -26,6 +26,9 @@
|
||||
* better solution then plain text.
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.5 2005/04/17 23:58:26 prozacx
|
||||
* Added OnLoad() for setting pass from config
|
||||
*
|
||||
* Revision 1.4 2005/04/17 23:46:06 prozacx
|
||||
* Upgraded output print msgs to new schema
|
||||
*
|
||||
@@ -81,6 +84,17 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const string& sArgs)
|
||||
{
|
||||
if (!sArgs.empty())
|
||||
{
|
||||
m_sPassword = CBlowfish::MD5( sArgs );
|
||||
return( OnBoot() );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool OnBoot()
|
||||
{
|
||||
if ( m_sPassword.empty() )
|
||||
|
||||
Reference in New Issue
Block a user