* ---------------------------------------------------
*/
-#include <string>
-#include <vector>
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
-#include "mode.h"
+#include "inspircd.h"
#include "u_listmode.h"
/* $ModDesc: Provides support for the +I channel mode */
ie = new InviteException(ServerInstance);
if (!ServerInstance->AddMode(ie, 'I'))
throw ModuleException("Could not add new modes!");
- ServerInstance->PublishInterface("ChannelBanList", this);
+ ServerInstance->Modules->PublishInterface("ChannelBanList", this);
}
virtual void Implements(char* List)
{
ServerInstance->Modes->DelMode(ie);
DELETE(ie);
- ServerInstance->UnpublishInterface("ChannelBanList", this);
+ ServerInstance->Modules->UnpublishInterface("ChannelBanList", this);
}
};
-
-class ModuleInviteExceptionFactory : public ModuleFactory
-{
- public:
- ModuleInviteExceptionFactory()
- {
- }
-
- ~ModuleInviteExceptionFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleInviteException(Me);
- }
-
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModuleInviteExceptionFactory;
-}
+MODULE_INIT(ModuleInviteException)