summaryrefslogtreecommitdiff
path: root/modules/commands/bs_assign.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/bs_assign.cpp
parent0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff)
New event system
Diffstat (limited to 'modules/commands/bs_assign.cpp')
-rw-r--r--modules/commands/bs_assign.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/modules/commands/bs_assign.cpp b/modules/commands/bs_assign.cpp
index 3bd00a372..90fb7ed56 100644
--- a/modules/commands/bs_assign.cpp
+++ b/modules/commands/bs_assign.cpp
@@ -10,6 +10,7 @@
*/
#include "module.h"
+#include "modules/bs_info.h"
class CommandBSAssign : public Command
{
@@ -203,6 +204,8 @@ class CommandBSSetNoBot : public Command
};
class BSAssign : public Module
+ , public EventHook<Event::Invite>
+ , public EventHook<Event::BotInfoEvent>
{
ExtensibleItem<bool> nobot;
@@ -211,9 +214,13 @@ class BSAssign : public Module
CommandBSSetNoBot commandbssetnobot;
public:
- BSAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR),
- nobot(this, "BS_NOBOT"),
- commandbsassign(this), commandbsunassign(this), commandbssetnobot(this)
+ BSAssign(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR)
+ , EventHook<Event::Invite>("OnInvite")
+ , EventHook<Event::BotInfoEvent>("OnBotInfoEvent")
+ , nobot(this, "BS_NOBOT")
+ , commandbsassign(this)
+ , commandbsunassign(this)
+ , commandbssetnobot(this)
{
}