Change second argument to module in OnLoad() from sErrorMsg to sMessage.

This message is always displayed when the module returns (well, screw webadmin)
and this way a module can notify the user if it loaded but something unexpected
happened.

As you might guess, no one uses this ATM :)

Proposal comes from prozac


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@855 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-10-28 17:57:07 +00:00
parent 52534f2d1f
commit ee350ab744
18 changed files with 38 additions and 25 deletions
+2 -2
View File
@@ -295,7 +295,7 @@ public:
}
void UnSetUser() { m_pUser = NULL; }
virtual bool OnLoad( const CString & sArgs, CString & sErrorMsg );
virtual bool OnLoad( const CString & sArgs, CString & sMessage );
virtual void OnUserAttached() { CBNone( "OnUserAttached" ); }
virtual void OnUserDetached() { CBNone( "OnUserDetached" ); }
virtual void OnIRCDisconnected() { CBNone( "OnIRCDisconnected" ); }
@@ -976,7 +976,7 @@ CModPerl::EModRet CModPerl::CallBack( const PString & sHookName, const VPString
// special case this, required for perl modules that are dynamic
EXTERN_C void boot_DynaLoader (pTHX_ CV* cv);
bool CModPerl::OnLoad( const CString & sArgs, CString & sErrorMsg )
bool CModPerl::OnLoad( const CString & sArgs, CString & sMessage )
{
m_pPerl = perl_alloc();
perl_construct( m_pPerl );