summaryrefslogtreecommitdiff
path: root/src/modules/m_sanick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_sanick.cpp')
-rw-r--r--src/modules/m_sanick.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp
index 4de8cf55d..056ccafd2 100644
--- a/src/modules/m_sanick.cpp
+++ b/src/modules/m_sanick.cpp
@@ -45,15 +45,15 @@ void handle_sanick(char **parameters, int pcnt, userrec *user)
class ModuleSanick : public Module
{
public:
- ModuleSanick()
+ ModuleSanick(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
Srv->AddCommand("SANICK",handle_sanick,'o',2,"m_sanick.so");
}
virtual ~ModuleSanick()
{
- delete Srv;
}
virtual Version GetVersion()
@@ -76,9 +76,9 @@ class ModuleSanickFactory : public ModuleFactory
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleSanick;
+ return new ModuleSanick(Me);
}
};