summaryrefslogtreecommitdiff
path: root/modules/core/os_session.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/core/os_session.cpp')
-rw-r--r--modules/core/os_session.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/core/os_session.cpp b/modules/core/os_session.cpp
index 879dc6cf7..8b8e06dca 100644
--- a/modules/core/os_session.cpp
+++ b/modules/core/os_session.cpp
@@ -460,14 +460,17 @@ class CommandOSException : public Command
class OSSession : public Module
{
+ CommandOSSession commandossession;
+ CommandOSException commandosexception;
+
public:
OSSession(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator)
{
this->SetAuthor("Anope");
this->SetType(CORE);
- this->AddCommand(OperServ, new CommandOSSession());
- this->AddCommand(OperServ, new CommandOSException());
+ this->AddCommand(OperServ, &commandossession);
+ this->AddCommand(OperServ, &commandosexception);
}
};