diff options
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r-- | src/modules/m_operchans.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp index f78bb5e36..cf05419c1 100644 --- a/src/modules/m_operchans.cpp +++ b/src/modules/m_operchans.cpp @@ -61,10 +61,10 @@ class ModuleOperChans : public Module Server* Srv; OperChans* oc; public: - ModuleOperChans(Server* Me) + ModuleOperChans(InspIRCd* Me) : Module::Module(Me) { - Srv = Me; + oc = new OperChans(ServerInstance); Srv->AddMode(oc, 'O'); } @@ -118,7 +118,7 @@ class ModuleOperChansFactory : public ModuleFactory { } - virtual Module * CreateModule(Server* Me) + virtual Module * CreateModule(InspIRCd* Me) { return new ModuleOperChans(Me); } |