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:
prozacx
2005-04-17 23:58:26 +00:00
parent 63d565ff1f
commit c5cad585f2
+14
View File
@@ -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() )