From 3e5a5e1c669f6027b897f7358d45f92e1552f746 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 10 Dec 2014 01:29:18 -0500 Subject: Use a triat class for event names instead of having to manually give them places, which is much less error prone --- include/modules/bs_bot.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/modules/bs_bot.h') diff --git a/include/modules/bs_bot.h b/include/modules/bs_bot.h index f66d57031..fe6534309 100644 --- a/include/modules/bs_bot.h +++ b/include/modules/bs_bot.h @@ -32,3 +32,7 @@ namespace Event virtual void OnBotDelete(ServiceBot *bi) anope_abstract; }; } + +template<> struct EventName { static constexpr const char *const name = "OnBotCreate"; }; +template<> struct EventName { static constexpr const char *const name = "OnBotChange"; }; +template<> struct EventName { static constexpr const char *const name = "OnBotDelete"; }; -- cgit