diff options
author | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-04-20 14:35:14 -0400 |
commit | 26ac315192e0d8a04d50e910697ab794eedf0cc1 (patch) | |
tree | b9916f14fe35ce5c4de95c4194ca4ea0cb30812f /modules/commands/ns_list.cpp | |
parent | 0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff) |
New event system
Diffstat (limited to 'modules/commands/ns_list.cpp')
-rw-r--r-- | modules/commands/ns_list.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/modules/commands/ns_list.cpp b/modules/commands/ns_list.cpp index 6aedbf666..0037cbcc5 100644 --- a/modules/commands/ns_list.cpp +++ b/modules/commands/ns_list.cpp @@ -10,6 +10,8 @@ */ #include "module.h" +#include "modules/ns_info.h" +#include "modules/ns_set.h" class CommandNSList : public Command { @@ -203,8 +205,7 @@ class CommandNSSetPrivate : public Command } NickCore *nc = na->nc; - EventReturn MOD_RESULT; - FOREACH_RESULT(OnSetNickOption, MOD_RESULT, (source, this, nc, param)); + EventReturn MOD_RESULT = Event::OnSetNickOption(&Event::SetNickOption::OnSetNickOption, source, this, nc, param); if (MOD_RESULT == EVENT_STOP) return; @@ -273,6 +274,7 @@ class CommandNSSASetPrivate : public CommandNSSetPrivate class NSList : public Module + , public EventHook<Event::NickInfo> { CommandNSList commandnslist; @@ -282,9 +284,12 @@ class NSList : public Module SerializableExtensibleItem<bool> priv; public: - NSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), - commandnslist(this), commandnssetprivate(this), commandnssasetprivate(this), - priv(this, "NS_PRIVATE") + NSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) + , EventHook<Event::NickInfo>("OnNickInfo") + , commandnslist(this) + , commandnssetprivate(this) + , commandnssasetprivate(this) + , priv(this, "NS_PRIVATE") { } |