summaryrefslogtreecommitdiff
path: root/modules/core/os_kick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_kick.cpp')
-rw-r--r--modules/core/os_kick.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/core/os_kick.cpp b/modules/core/os_kick.cpp
index edb92436a..44a474d04 100644
--- a/modules/core/os_kick.cpp
+++ b/modules/core/os_kick.cpp
@@ -67,13 +67,15 @@ class CommandOSKick : public Command
class OSKick : public Module
{
+ CommandOSKick commandoskick;
+
public:
OSKick(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, new CommandOSKick());
+ this->AddCommand(OperServ, &commandoskick);
}
};