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/bs_set.cpp | |
parent | 0b6476f06ff9ce06545c421143c7d7163c750aa5 (diff) |
New event system
Diffstat (limited to 'modules/commands/bs_set.cpp')
-rw-r--r-- | modules/commands/bs_set.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/commands/bs_set.cpp b/modules/commands/bs_set.cpp index a69ebb8cf..68aaf8d47 100644 --- a/modules/commands/bs_set.cpp +++ b/modules/commands/bs_set.cpp @@ -10,6 +10,7 @@ */ #include "module.h" +#include "modules/bs_kick.h" class CommandBSSet : public Command { @@ -192,15 +193,18 @@ class CommandBSSetPrivate : public Command }; class BSSet : public Module + , public EventHook<Event::BotBan> { CommandBSSet commandbsset; CommandBSSetBanExpire commandbssetbanexpire; CommandBSSetPrivate commandbssetprivate; public: - BSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR), - commandbsset(this), commandbssetbanexpire(this), - commandbssetprivate(this) + BSSet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) + , EventHook<Event::BotBan>("OnBotBan") + , commandbsset(this) + , commandbssetbanexpire(this) + , commandbssetprivate(this) { } |