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/botserv | |
| 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/botserv')
| -rw-r--r-- | modules/pseudoclients/botserv/botserv.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/pseudoclients/botserv/botserv.cpp b/modules/pseudoclients/botserv/botserv.cpp index a2cfe7335..312b2a9d5 100644 --- a/modules/pseudoclients/botserv/botserv.cpp +++ b/modules/pseudoclients/botserv/botserv.cpp @@ -30,15 +30,15 @@ class BotServCore : public Module, public BotServ::BotServService public: BotServCore(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, PSEUDOCLIENT | VENDOR) , BotServ::BotServService(this) - , EventHook<Event::SetCorrectModes>("OnSetCorrectModes") - , EventHook<Event::BotAssign>("OnBotAssign") - , EventHook<Event::JoinChannel>("OnJoinChannel") - , EventHook<Event::LeaveChannel>("OnLeaveChannel") - , EventHook<Event::Help>("Help") - , EventHook<Event::ChannelModeSet>("OnChannelModeSet") - , EventHook<Event::CreateChan>("OnCreateChan") - , EventHook<Event::UserKicked>("OnUserKicked") - , EventHook<Event::CreateBot>("OnCreateBot") + , EventHook<Event::SetCorrectModes>() + , EventHook<Event::BotAssign>() + , EventHook<Event::JoinChannel>() + , EventHook<Event::LeaveChannel>() + , EventHook<Event::Help>() + , EventHook<Event::ChannelModeSet>() + , EventHook<Event::CreateChan>() + , EventHook<Event::UserKicked>() + , EventHook<Event::CreateBot>() , persist("PERSIST") , inhabit("inhabit") { |
