* ---------------------------------------------------
*/
-#include <stdio.h>
-#include <string>
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
-
#include "hashcomp.h"
-#include "inspircd.h"
/* $ModDesc: Provides the NICKLOCK command, allows an oper to chage a users nick and lock them to it until they quit */
-
/** Handle /NICKLOCK
*/
class cmd_nicklock : public command_t
// check nick is valid
if (!ServerInstance->IsNick(parameters[1]))
{
- return CMD_FAILURE
+ return CMD_FAILURE;
}
// let others know
char* n;
public:
ModuleNickLock(InspIRCd* Me)
- : Module::Module(Me)
+ : Module(Me)
{
cmd1 = new cmd_nicklock(ServerInstance);
};
-extern "C" void * init_module( void )
+extern "C" DllExport void * init_module( void )
{
return new ModuleNickLockFactory;
}