summaryrefslogtreecommitdiff
path: root/include/modules/bs_bot.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-12-10 01:29:18 -0500
committerAdam <Adam@anope.org>2014-12-10 01:29:18 -0500
commit3e5a5e1c669f6027b897f7358d45f92e1552f746 (patch)
tree5be9d41890d79eb0472f374b3f2a0ab9b36b1941 /include/modules/bs_bot.h
parent42238034490fb5479d787bd1695750387d508200 (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 'include/modules/bs_bot.h')
-rw-r--r--include/modules/bs_bot.h4
1 files changed, 4 insertions, 0 deletions
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<Event::BotCreate> { static constexpr const char *const name = "OnBotCreate"; };
+template<> struct EventName<Event::BotChange> { static constexpr const char *const name = "OnBotChange"; };
+template<> struct EventName<Event::BotDelete> { static constexpr const char *const name = "OnBotDelete"; };