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 /include/modules/ns_drop.h | |
| 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 'include/modules/ns_drop.h')
| -rw-r--r-- | include/modules/ns_drop.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/modules/ns_drop.h b/include/modules/ns_drop.h index 9217a924c..bae9d77b6 100644 --- a/include/modules/ns_drop.h +++ b/include/modules/ns_drop.h @@ -19,3 +19,4 @@ namespace Event extern CoreExport EventHandlers<NickDrop> OnNickDrop; } +template<> struct EventName<Event::NickDrop> { static constexpr const char *const name = "OnNickDrop"; }; |
