sync from my branch rev 983 and 993:

- module api change, if module fails to load it can give back an useful error message
- give a message when client doesnt supply a password when connecting
- some minor cleanup


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@803 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2007-05-16 22:42:00 +00:00
parent d82eb75d1c
commit a3b405bd07
19 changed files with 31 additions and 34 deletions
+2 -2
View File
@@ -18,7 +18,7 @@ public:
{
}
virtual bool OnLoad( const CString& sArgs );
virtual bool OnLoad( const CString& sArgs, CString& sErrorMsg );
virtual EModRet OnUserPart( CString& sChannel, CString& sMessage )
{
@@ -88,7 +88,7 @@ static void RunTimer( CModule * pModule, CFPTimer *pTimer )
((CStickyChan *)pModule)->RunJob();
}
bool CStickyChan::OnLoad(const CString& sArgs)
bool CStickyChan::OnLoad(const CString& sArgs, CString& sErrorMsg)
{
AddTimer( RunTimer, "StickyChanTimer", 15 );
return( true );