mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +02:00
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:
+2
-2
@@ -209,7 +209,7 @@ public:
|
||||
MODCONSTRUCTOR(CSChat) {}
|
||||
virtual ~CSChat() { CleanSocks(); }
|
||||
|
||||
virtual bool OnLoad( const CString & sArgs, CString & sErrorMsg )
|
||||
virtual bool OnLoad( const CString & sArgs, CString & sMessage )
|
||||
{
|
||||
m_sPemFile = sArgs;
|
||||
|
||||
@@ -219,7 +219,7 @@ public:
|
||||
}
|
||||
|
||||
if (!CFile::Exists(m_sPemFile)) {
|
||||
sErrorMsg = "Unable to load pem file [" + m_sPemFile + "]";
|
||||
sMessage = "Unable to load pem file [" + m_sPemFile + "]";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user