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/pseudoclients/chanserv | |
| 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/pseudoclients/chanserv')
| -rw-r--r-- | modules/pseudoclients/chanserv/chanserv.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/modules/pseudoclients/chanserv/chanserv.cpp b/modules/pseudoclients/chanserv/chanserv.cpp index bfa7253f8..dbd7f14eb 100644 --- a/modules/pseudoclients/chanserv/chanserv.cpp +++ b/modules/pseudoclients/chanserv/chanserv.cpp @@ -59,30 +59,30 @@ class ChanServCore : public Module public: ChanServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PSEUDOCLIENT | VENDOR) , ChanServService(this) - , EventHook<Event::ChannelCreate>("OnChannelCreate") - , EventHook<Event::BotDelete>("OnBotDelete") - , EventHook<Event::BotPrivmsg>("OnBotPrivmsg") - , EventHook<Event::DelCore>("OnDelCore") - , EventHook<Event::DelChan>("OnDelChan") - , EventHook<Event::Help>("OnHelp") - , EventHook<Event::CheckModes>("OnCheckModes") - , EventHook<Event::CreateChan>("OnCreateChan") - , EventHook<Event::CanSet>("OnCanSet") - , EventHook<Event::ChannelSync>("OnChannelSync") - , EventHook<Event::Log>("OnLog") - , EventHook<Event::ExpireTick>("OnExpireTick") - , EventHook<Event::CheckDelete>("OnCheckDelete") - , EventHook<Event::PreUplinkSync>("OnPreUplinkSync") - , EventHook<Event::ChanRegistered>("OnChanRegistered") - , EventHook<Event::JoinChannel>("OnJoinChannel") - , EventHook<Event::ChannelModeSet>("OnChannelModeSet") - , EventHook<Event::ChanInfo>("OnChanInfo") - , EventHook<Event::SetCorrectModes>("OnSetCorrectModes") + , EventHook<Event::ChannelCreate>() + , EventHook<Event::BotDelete>() + , EventHook<Event::BotPrivmsg>() + , EventHook<Event::DelCore>() + , EventHook<Event::DelChan>() + , EventHook<Event::Help>() + , EventHook<Event::CheckModes>() + , EventHook<Event::CreateChan>() + , EventHook<Event::CanSet>() + , EventHook<Event::ChannelSync>() + , EventHook<Event::Log>() + , EventHook<Event::ExpireTick>() + , EventHook<Event::CheckDelete>() + , EventHook<Event::PreUplinkSync>() + , EventHook<Event::ChanRegistered>() + , EventHook<Event::JoinChannel>() + , EventHook<Event::ChannelModeSet>() + , EventHook<Event::ChanInfo>() + , EventHook<Event::SetCorrectModes>() , inhabit(this, "inhabit") , persist("PERSIST") , always_lower(false) - , OnPreChanExpire(this, "OnPreChanExpire") - , OnChanExpire(this, "OnChanExpire") + , OnPreChanExpire(this) + , OnChanExpire(this) , channel_type(this) , chanaccess_type(this, "ChanAccess") , level_type(this) |
