* ---------------------------------------------------
*/
-#include <stdio.h>
-#include <string>
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-#include "configreader.h"
-#include "inspircd.h"
/* $ModDesc: Provides support for /KNOCK and mode +K */
return CMD_FAILURE;
}
- std::string line = "";
+ std::string line;
if (c->IsModeSet('K'))
{
}
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleKnockFactory : public ModuleFactory
-{
- public:
- ModuleKnockFactory()
- {
- }
-
- ~ModuleKnockFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleKnock(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleKnockFactory;
-}
-
+MODULE_INIT(ModuleKnock)