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/ns_info.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/modules/ns_info.h') diff --git a/include/modules/ns_info.h b/include/modules/ns_info.h index dd593ce59..e816cc356 100644 --- a/include/modules/ns_info.h +++ b/include/modules/ns_info.h @@ -20,3 +20,5 @@ namespace Event virtual void OnNickInfo(CommandSource &source, NickServ::Nick *na, InfoFormatter &info, bool show_hidden) anope_abstract; }; } + +template<> struct EventName { static constexpr const char *const name = "OnNickInfo"; }; -- cgit