summaryrefslogtreecommitdiff
path: root/modules/commands/os_info.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/os_info.cpp
parent0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff)
New event system
Diffstat (limited to 'modules/commands/os_info.cpp')
-rw-r--r--modules/commands/os_info.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/modules/commands/os_info.cpp b/modules/commands/os_info.cpp
index 462fbbc4c..53b5fecd6 100644
--- a/modules/commands/os_info.cpp
+++ b/modules/commands/os_info.cpp
@@ -7,6 +7,8 @@
*/
#include "module.h"
+#include "modules/ns_info.h"
+#include "modules/cs_info.h"
struct OperInfo : Serializable
{
@@ -248,6 +250,8 @@ class CommandOSInfo : public Command
};
class OSInfo : public Module
+ , public EventHook<Event::NickInfo>
+ , public EventHook<Event::ChanInfo>
{
CommandOSInfo commandosinfo;
ExtensibleItem<OperInfos> oinfo;
@@ -270,8 +274,12 @@ class OSInfo : public Module
}
public:
- OSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- commandosinfo(this), oinfo(this, "operinfo"), oinfo_type("OperInfo", OperInfo::Unserialize)
+ OSInfo(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
+ , EventHook<Event::NickInfo>("OnNickInfo")
+ , EventHook<Event::ChanInfo>("OnChanInfo")
+ , commandosinfo(this)
+ , oinfo(this, "operinfo")
+ , oinfo_type("OperInfo", OperInfo::Unserialize)
{
}