#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 = "<new-hostname>";
: Module::Module(Me)
{
- mycommand = new cmd_sethost();
+ mycommand = new cmd_sethost(ServerInstance);
ServerInstance->AddCommand(mycommand);
}