From c5cad585f21ac3b83606e1cfef72b93a2a33c666 Mon Sep 17 00:00:00 2001 From: prozacx Date: Sun, 17 Apr 2005 23:58:26 +0000 Subject: [PATCH] Added OnLoad() for setting pass from config git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@143 726aef4b-f618-498e-8847-2d620e286838 --- modules/savebuff.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp index b1e3b567..93a1ce37 100644 --- a/modules/savebuff.cpp +++ b/modules/savebuff.cpp @@ -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() )