*/
#include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
/* $ModDesc: Provides support for USERIP command */
user->WriteServ(retbuf);
/* Dont send to the network */
- return CMD_FAILURE;
+ return CMD_LOCALONLY;
}
};
};
-// stuff down here is the module-factory stuff. For basic modules you can ignore this.
-
-class ModuleUserIPFactory : public ModuleFactory
-{
- public:
- ModuleUserIPFactory()
- {
- }
-
- ~ModuleUserIPFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleUserIP(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleUserIPFactory;
-}
+MODULE_INIT(ModuleUserIP)