diff options
author | Adam <Adam@anope.org> | 2014-12-10 01:29:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-12-10 01:29:18 -0500 |
commit | 3e5a5e1c669f6027b897f7358d45f92e1552f746 (patch) | |
tree | 5be9d41890d79eb0472f374b3f2a0ab9b36b1941 /modules/commands/cs_set.cpp | |
parent | 42238034490fb5479d787bd1695750387d508200 (diff) |
Use a triat class for event names instead of having to manually give them places, which is much less error prone
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r-- | modules/commands/cs_set.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index 2a811b5b2..9cf58c029 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -1101,18 +1101,18 @@ class CSSet : public Module public: CSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) - , EventHook<Event::CreateChan>("OnCreateChan") - , EventHook<Event::ChannelCreate>("OnChannelCreate") - , EventHook<Event::ChannelSync>("OnChannelSync") - , EventHook<Event::CheckKick>("OnCheckKick") - , EventHook<Event::DelChan>("OnDelChan") - , EventHook<Event::ChannelModeSet>("OnChannelModeSet") - , EventHook<Event::ChannelModeUnset>("OnChannelModeUnset") - , EventHook<Event::CheckDelete>("OnCheckDelete") - , EventHook<Event::JoinChannel>("OnJoinChannel") - , EventHook<Event::SetCorrectModes>("OnSetCorrectModes") - , EventHook<ChanServ::Event::PreChanExpire>("OnPreChanExpire") - , EventHook<Event::ChanInfo>("OnChanInfo") + , EventHook<Event::CreateChan>() + , EventHook<Event::ChannelCreate>() + , EventHook<Event::ChannelSync>() + , EventHook<Event::CheckKick>() + , EventHook<Event::DelChan>() + , EventHook<Event::ChannelModeSet>() + , EventHook<Event::ChannelModeUnset>() + , EventHook<Event::CheckDelete>() + , EventHook<Event::JoinChannel>() + , EventHook<Event::SetCorrectModes>() + , EventHook<ChanServ::Event::PreChanExpire>() + , EventHook<Event::ChanInfo>() , noautoop(this, ChanServ::channel, "NOAUTOOP") , peace(this, ChanServ::channel, "PEACE") |