summaryrefslogtreecommitdiff
path: root/src/modules/m_opermodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_opermodes.cpp')
-rw-r--r--src/modules/m_opermodes.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp
index 7bfc67f6b..a2229a047 100644
--- a/src/modules/m_opermodes.cpp
+++ b/src/modules/m_opermodes.cpp
@@ -31,16 +31,16 @@ class ModuleModesOnOper : public Module
ConfigReader *Conf;
public:
- ModuleModesOnOper()
+ ModuleModesOnOper(Server* Me)
+ : Module::Module(Me)
{
- Srv = new Server;
+ Srv = Me;
Conf = new ConfigReader;
}
virtual ~ModuleModesOnOper()
{
delete Conf;
- delete Srv;
}
virtual Version GetVersion()
@@ -85,9 +85,9 @@ class ModuleModesOnOperFactory : public ModuleFactory
{
}
- virtual Module * CreateModule()
+ virtual Module * CreateModule(Server* Me)
{
- return new ModuleModesOnOper;
+ return new ModuleModesOnOper(Me);
}
};