- ModuleExemptChanOps() : ec(this)
- {
- }
-
- void init()
- {
- ServerInstance->Modules->AddService(ec);
- Implementation eventlist[] = { I_OnChannelDelete, I_OnChannelRestrictionApply, I_OnRehash, I_OnSyncChannel };
- ServerInstance->Modules->Attach(eventlist, this, 4);
-
- OnRehash(NULL);
- }
-
- Version GetVersion()
- {
- return Version("Provides the ability to allow channel operators to be exempt from certain modes.",VF_VENDOR);
- }
-
- void OnRehash(User* user)
- {
- defaults = ServerInstance->Config->ConfValue("exemptchanops")->getString("defaults");
- ec.DoRehash();
- }
-
- void OnSyncChannel(Channel* chan, Module* proto, void* opaque)
- {
- ec.DoSyncChannel(chan, proto, opaque);
- }
-
- ModeHandler* FindMode(const std::string& mid)