X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sethost.cpp;h=b7496a4ba1f122fa5c53b92a42ce8841ae80c377;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=7daccb293d803a5e612ba277cc302d972b15d420;hpb=b37a253d962ed7af1ea7a328abf2a1af74f30759;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 7daccb293..b7496a4ba 100644 --- a/src/modules/m_sethost.cpp +++ b/src/modules/m_sethost.cpp @@ -21,18 +21,18 @@ using namespace std; #include "users.h" #include "channels.h" #include "modules.h" -#include "helperfuncs.h" + #include "inspircd.h" /* $ModDesc: Provides support for the SETHOST command */ -static Server *Srv; -extern InspIRCd* ServerInstance; + + class cmd_sethost : public command_t { public: - cmd_sethost() : command_t("SETHOST",'o',1) + cmd_sethost (InspIRCd* Instance) : command_t(Instance,"SETHOST",'o',1) { this->source = "m_sethost.so"; syntax = ""; @@ -70,8 +70,8 @@ class ModuleSetHost : public Module : Module::Module(Me) { - mycommand = new cmd_sethost(); - Srv->AddCommand(mycommand); + mycommand = new cmd_sethost(ServerInstance); + ServerInstance->AddCommand(mycommand); } virtual ~ModuleSetHost()