- ModuleBanRedirect(InspIRCd* Me)
- : Module(Me)
- {
- re = new BanRedirect(Me);
- nofollow = false;
-
- if(!ServerInstance->Modes->AddModeWatcher(re))
- {
- delete re;
- throw ModuleException("Could not add mode watcher");
- }
-
- OnRehash(NULL, "");
-
- Implementation list[] = { I_OnRehash, I_OnUserPreJoin, I_OnChannelDelete, I_OnCleanup };
- Me->Modules->Attach(list, this, 4);
-
- }
-
- virtual void OnChannelDelete(Channel* chan)
+ ModuleBanRedirect()
+ : re(this)
+ , nofollow(false)
+ , limitmode(this, "limit")
+ , redirectmode(this, "redirect")