summaryrefslogtreecommitdiff
path: root/modules/commands/cs_list.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-04-20 14:35:14 -0400
committerAdam <Adam@anope.org>2014-04-20 14:35:14 -0400
commit26ac315192e0d8a04d50e910697ab794eedf0cc1 (patch)
treeb9916f14fe35ce5c4de95c4194ca4ea0cb30812f /modules/commands/cs_list.cpp
parent0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff)
New event system
Diffstat (limited to 'modules/commands/cs_list.cpp')
-rw-r--r--modules/commands/cs_list.cpp13
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/commands/cs_list.cpp b/modules/commands/cs_list.cpp
index 735a836de..68cca6d42 100644
--- a/modules/commands/cs_list.cpp
+++ b/modules/commands/cs_list.cpp
@@ -10,6 +10,8 @@
*/
#include "module.h"
+#include "modules/cs_info.h"
+#include "modules/cs_set.h"
class CommandCSList : public Command
{
@@ -190,8 +192,7 @@ class CommandCSSetPrivate : public Command
return;
}
- EventReturn MOD_RESULT;
- FOREACH_RESULT(OnSetChannelOption, MOD_RESULT, (source, this, ci, params[1]));
+ EventReturn MOD_RESULT = Event::OnSetChannelOption(&Event::SetChannelOption::OnSetChannelOption, source, this, ci, params[1]);
if (MOD_RESULT == EVENT_STOP)
return;
@@ -235,6 +236,7 @@ class CommandCSSetPrivate : public Command
};
class CSList : public Module
+ , public EventHook<Event::ChanInfo>
{
CommandCSList commandcslist;
CommandCSSetPrivate commandcssetprivate;
@@ -242,8 +244,11 @@ class CSList : public Module
SerializableExtensibleItem<bool> priv;
public:
- CSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- commandcslist(this), commandcssetprivate(this), priv(this, "CS_PRIVATE")
+ CSList(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
+ , EventHook<Event::ChanInfo>("OnChanInfo")
+ , commandcslist(this)
+ , commandcssetprivate(this)
+ , priv(this, "CS_PRIVATE")
{
}