X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_sethost.cpp;h=b7496a4ba1f122fa5c53b92a42ce8841ae80c377;hb=d54fd9b1e6b31f69332a9241b5f17330c0ad61e0;hp=65b03c3d053708c7f9099d8789b4d53d1e9c1d90;hpb=d0b4bb3811458aa335857514e4cbb95d5c84f433;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_sethost.cpp b/src/modules/m_sethost.cpp index 65b03c3d0..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 */ -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,7 +70,7 @@ class ModuleSetHost : public Module : Module::Module(Me) { - mycommand = new cmd_sethost(); + mycommand = new cmd_sethost(ServerInstance); ServerInstance->AddCommand(mycommand); }