summaryrefslogtreecommitdiff
path: root/include/modules/cs_drop.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/cs_drop.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/cs_drop.h')
-rw-r--r--include/modules/cs_drop.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/modules/cs_drop.h b/include/modules/cs_drop.h
index 49247b3cb..db231059b 100644
--- a/include/modules/cs_drop.h
+++ b/include/modules/cs_drop.h
@@ -18,3 +18,5 @@ namespace Event
virtual EventReturn OnChanDrop(CommandSource &source, ChanServ::Channel *ci) anope_abstract;
};
}
+
+template<> struct EventName<Event::ChanDrop> { static constexpr const char *const name = "OnChanDrop"; };