summaryrefslogtreecommitdiff
path: root/modules/core/cs_invite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/cs_invite.cpp')
-rw-r--r--modules/core/cs_invite.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/core/cs_invite.cpp b/modules/core/cs_invite.cpp
index 011a0bcf3..c4f3bd4fa 100644
--- a/modules/core/cs_invite.cpp
+++ b/modules/core/cs_invite.cpp
@@ -82,12 +82,15 @@ class CommandCSInvite : public Command
class CSInvite : public Module
{
+ CommandCSInvite commandcsinvite;
+
public:
CSInvite(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(ChanServ, new CommandCSInvite());
+
+ this->AddCommand(ChanServ, &commandcsinvite);
}
};