summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set_misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/commands/cs_set_misc.cpp')
-rw-r--r--modules/commands/cs_set_misc.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/modules/commands/cs_set_misc.cpp b/modules/commands/cs_set_misc.cpp
index 41abd6138..3d8dbb0dd 100644
--- a/modules/commands/cs_set_misc.cpp
+++ b/modules/commands/cs_set_misc.cpp
@@ -10,6 +10,8 @@
#include "module.h"
#include "modules/set_misc.h"
+#include "modules/cs_info.h"
+#include "modules/cs_set.h"
static Module *me;
@@ -112,7 +114,7 @@ class CommandCSSetMisc : public Command
}
EventReturn MOD_RESULT;
- FOREACH_RESULT(OnSetChannelOption, MOD_RESULT, (source, this, ci, param));
+ MOD_RESULT = Event::OnSetChannelOption(&Event::SetChannelOption::OnSetChannelOption, source, this, ci, param);
if (MOD_RESULT == EVENT_STOP)
return;
@@ -163,13 +165,16 @@ class CommandCSSetMisc : public Command
};
class CSSetMisc : public Module
+ , public EventHook<Event::ChanInfo>
{
CommandCSSetMisc commandcssetmisc;
Serialize::Type csmiscdata_type;
public:
- CSSetMisc(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- commandcssetmisc(this), csmiscdata_type("CSMiscData", CSMiscData::Unserialize)
+ CSSetMisc(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
+ , EventHook<Event::ChanInfo>("OnChanInfo")
+ , commandcssetmisc(this)
+ , csmiscdata_type("CSMiscData", CSMiscData::Unserialize)
{
me = this;
}