mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Added OnLoad() and print modname in error msg
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@148 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+14
-1
@@ -20,6 +20,9 @@
|
||||
*
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.7 2005/04/18 05:41:43 prozacx
|
||||
* Added OnLoad() and print modname in error msg
|
||||
*
|
||||
* Revision 1.6 2005/04/18 04:44:40 imaginos
|
||||
* fixed bug where attempting to set a bad pass trashes existing buffer
|
||||
*
|
||||
@@ -71,6 +74,16 @@ public:
|
||||
SaveBufferToDisk();
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const string& sArgs)
|
||||
{
|
||||
if (!sArgs.empty())
|
||||
{
|
||||
m_sPassword = CBlowfish::MD5( sArgs );
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
virtual bool OnBoot()
|
||||
{
|
||||
if ( m_sPassword.empty() )
|
||||
@@ -115,7 +128,7 @@ public:
|
||||
}
|
||||
} else
|
||||
{
|
||||
CUtils::PrintError("Failed to Decrypt Messages");
|
||||
CUtils::PrintError("[" + GetModName() + ".so] Failed to Decrypt Messages");
|
||||
return( false );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user