- ModuleBanRedirect(InspIRCd* Me)
- : Module(Me), re(Me, this)
- {
- nofollow = false;
-
- if(!ServerInstance->Modes->AddModeWatcher(&re))
- throw ModuleException("Could not add mode watcher");
-
- OnRehash(NULL);
-
- Extensible::Register(&re.extItem);
- 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")