diff options
| author | 2014-06-13 15:45:55 +0200 | |
|---|---|---|
| committer | 2014-06-13 15:45:55 +0200 | |
| commit | 5b1ee304b5e1d71c71eec9ebf8f40758dfce5c1e (patch) | |
| tree | 015557a8b0acfa33c2c849ca413c279e5e4054a8 /src/configreader.cpp | |
| parent | Remove global Commandtable typedef (diff) | |
Change allocation of InspIRCd::Parser to be physically part of the object containing it
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); } |
