From d9e3bb8d4343643504ab7ee6ab943a000065cc8a Mon Sep 17 00:00:00 2001 From: danieldg Date: Sun, 13 Sep 2009 20:31:54 +0000 Subject: Remove redundant ServerInstance* fields It has been impossible to have more than one InspIRCd* object in the same address space for some time now, and this feature was never used. This formalizes class InspIRCd as a singleton object. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11703 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 86438bf73..9c608c37a 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -49,8 +49,6 @@ /* +s (server notice masks) */ #include "modes/umode_s.h" -InspIRCd* ModeHandler::ServerInstance; - ModeHandler::ModeHandler(Module* Creator, char modeletter, ParamSpec Params, ModeType type) : mode(modeletter), parameters_taken(Params), list(false), m_type(type), m_paramtype(TR_TEXT), oper(false), prefix(0), count(0), levelrequired(HALFOP_VALUE), creator(Creator) @@ -941,9 +939,8 @@ void ModeHandler::RemoveMode(Channel* channel, irc::modestacker* stack) } } -ModeParser::ModeParser(InspIRCd* Instance) : ServerInstance(Instance) +ModeParser::ModeParser(InspIRCd* Instance) { - ModeHandler::ServerInstance = Instance; ModeHandler* modes[] = { new ModeChannelSecret(Instance), -- cgit v1.2.3