summaryrefslogtreecommitdiff
path: root/modules/commands/os_info.cpp
diff options
context:
space:
mode:
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)
{
}