diff options
| author | Adam <Adam@anope.org> | 2016-07-28 21:29:35 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2016-07-28 21:29:35 -0400 |
| commit | 0e758a2ac23dc4a001e8e126cec14588da9a9769 (patch) | |
| tree | 45df813323e023c5c89db7279426c4ad0943b4a9 /include/modules/nickserv/set.h | |
| parent | a3c8afae00c54d5b95c620248b51f90679d7d53f (diff) | |
Allow serializable fields to use storage in the respective objects.
Split service management code nito a proper servicemanager. Make service
references managed instead of lazy lookup. Also made events and
serializable use service manager instead of their respective systems for
management
Diffstat (limited to 'include/modules/nickserv/set.h')
| -rw-r--r-- | include/modules/nickserv/set.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules/nickserv/set.h b/include/modules/nickserv/set.h index c6b86032b..c8438be3a 100644 --- a/include/modules/nickserv/set.h +++ b/include/modules/nickserv/set.h @@ -11,6 +11,10 @@ namespace Event { struct CoreExport SetNickOption : Events { + static constexpr const char *NAME = "setnickoption"; + + using Events::Events; + /** Called when a nickserv/set command is used. * @param source The source of the command * @param cmd The command @@ -20,7 +24,5 @@ namespace Event */ virtual EventReturn OnSetNickOption(CommandSource &source, Command *cmd, NickServ::Account *nc, const Anope::string &setting) anope_abstract; }; - static EventHandlersReference<SetNickOption> OnSetNickOption; } -template<> struct EventName<Event::SetNickOption> { static constexpr const char *const name = "OnSetNickOption"; }; |
