mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
commands.cpp:extern InspIRCd* ServerInstance;
helperfuncs.cpp: extern InspIRCd* ServerInstance; xline.cpp:extern InspIRCd* ServerInstance; The last 3 extern's in the entire program! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4866 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
12737ab4ad
commit
846fcfe452
@ -67,8 +67,6 @@ using namespace std;
|
||||
|
||||
extern time_t TIME;
|
||||
|
||||
extern InspIRCd* ServerInstance;
|
||||
|
||||
ModeHandler::ModeHandler(InspIRCd* Instance, char modeletter, int parameters_on, int parameters_off, bool listmode, ModeType type, bool operonly)
|
||||
: ServerInstance(Instance), mode(modeletter), n_params_on(parameters_on), n_params_off(parameters_off), list(listmode), m_type(type), oper(operonly)
|
||||
{
|
||||
|
@ -25,12 +25,10 @@ using namespace std;
|
||||
#include "inspircd.h"
|
||||
#include "helperfuncs.h"
|
||||
|
||||
extern InspIRCd *ServerInstance;
|
||||
|
||||
class cmd_gloadmodule : public command_t
|
||||
{
|
||||
public:
|
||||
cmd_gloadmodule (InspIRCd* Instance) : command_t(Instance,"GLOADMODULE", 'o', 1)
|
||||
cmd_gloadmodule (InspIRCd* Instance) : command_t(Instance,"GLOADMODULE", 'o', 1)
|
||||
{
|
||||
this->source = "m_globalload.so";
|
||||
syntax = "<modulename>";
|
||||
@ -53,7 +51,7 @@ class cmd_gloadmodule : public command_t
|
||||
class cmd_gunloadmodule : public command_t
|
||||
{
|
||||
public:
|
||||
cmd_gunloadmodule (InspIRCd* Instance) : command_t(Instance,"GUNLOADMODULE", 'o', 1)
|
||||
cmd_gunloadmodule (InspIRCd* Instance) : command_t(Instance,"GUNLOADMODULE", 'o', 1)
|
||||
{
|
||||
this->source = "m_globalload.so";
|
||||
syntax = "<modulename>";
|
||||
|
@ -23,7 +23,6 @@
|
||||
#include "socketengine.h"
|
||||
#include "wildcard.h"
|
||||
|
||||
extern InspIRCd* ServerInstance;
|
||||
extern time_t TIME;
|
||||
|
||||
using namespace std;
|
||||
|
Loading…
x
Reference in New Issue
Block a user