mirror of
https://github.com/znc/znc.git
synced 2026-05-02 19:42:32 +02:00
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:
@@ -23,7 +23,7 @@ class CSampleMod : public CModule {
|
||||
public:
|
||||
MODCONSTRUCTOR(CSampleMod) {}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs) {
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sErrorMsg) {
|
||||
PutModule("I'm being loaded with the arguments: [" + sArgs + "]");
|
||||
//AddTimer(new CSampleTimer(this, 300, 0, "Sample", "Sample timer for sample things."));
|
||||
//AddTimer(new CSampleTimer(this, 5, 20, "Another", "Another sample timer."));
|
||||
|
||||
Reference in New Issue
Block a user