From 5b1ee304b5e1d71c71eec9ebf8f40758dfce5c1e Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Fri, 13 Jun 2014 15:45:55 +0200 Subject: Change allocation of InspIRCd::Parser to be physically part of the object containing it --- src/configreader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/configreader.cpp') diff --git a/src/configreader.cpp b/src/configreader.cpp index 945600e6c..0ec53c482 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -69,14 +69,14 @@ bool ServerConfig::ApplyDisabledCommands(const std::string& data) std::string thiscmd; /* Enable everything first */ - const CommandParser::CommandMap& commands = ServerInstance->Parser->GetCommands(); + const CommandParser::CommandMap& commands = ServerInstance->Parser.GetCommands(); for (CommandParser::CommandMap::const_iterator x = commands.begin(); x != commands.end(); ++x) x->second->Disable(false); /* Now disable all the ones which the user wants disabled */ while (dcmds >> thiscmd) { - Command* handler = ServerInstance->Parser->GetHandler(thiscmd); + Command* handler = ServerInstance->Parser.GetHandler(thiscmd); if (handler) handler->Disable(true); } -- cgit v1.3.1-10-gc9f91