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:
brain 2006-08-11 01:39:21 +00:00
parent 12737ab4ad
commit 846fcfe452
3 changed files with 2 additions and 7 deletions

View File

@ -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)
{

View File

@ -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>";

View File

@ -23,7 +23,6 @@
#include "socketengine.h"
#include "wildcard.h"
extern InspIRCd* ServerInstance;
extern time_t TIME;
using namespace std;