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/os_info.cpp | |
parent | 0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff) |
New event system
Diffstat (limited to 'modules/commands/os_info.cpp')
-rw-r--r-- | modules/commands/os_info.cpp | 12 |
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) { } |