summaryrefslogtreecommitdiff
path: root/src/coremods
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-06-13 15:45:55 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-06-13 15:45:55 +0200
commit5b1ee304b5e1d71c71eec9ebf8f40758dfce5c1e (patch)
tree015557a8b0acfa33c2c849ca413c279e5e4054a8 /src/coremods
parent97faccd6c5edd79590c1390e642bd3c34e519e0a (diff)
Change allocation of InspIRCd::Parser to be physically part of the object containing it
Diffstat (limited to 'src/coremods')
-rw-r--r--src/coremods/core_info/cmd_commands.cpp2
-rw-r--r--src/coremods/core_stats.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_info/cmd_commands.cpp b/src/coremods/core_info/cmd_commands.cpp
index 8b255a928..3a892c5c4 100644
--- a/src/coremods/core_info/cmd_commands.cpp
+++ b/src/coremods/core_info/cmd_commands.cpp
@@ -31,7 +31,7 @@ CommandCommands::CommandCommands(Module* parent)
*/
CmdResult CommandCommands::Handle (const std::vector<std::string>&, User *user)
{
- const CommandParser::CommandMap& commands = ServerInstance->Parser->GetCommands();
+ const CommandParser::CommandMap& commands = ServerInstance->Parser.GetCommands();
std::vector<std::string> list;
list.reserve(commands.size());
for (CommandParser::CommandMap::const_iterator i = commands.begin(); i != commands.end(); ++i)
diff --git a/src/coremods/core_stats.cpp b/src/coremods/core_stats.cpp
index 1e90ed2bf..1ae2e168e 100644
--- a/src/coremods/core_stats.cpp
+++ b/src/coremods/core_stats.cpp
@@ -190,7 +190,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results)
/* stats m (list number of times each command has been used, plus bytecount) */
case 'm':
{
- const CommandParser::CommandMap& commands = ServerInstance->Parser->GetCommands();
+ const CommandParser::CommandMap& commands = ServerInstance->Parser.GetCommands();
for (CommandParser::CommandMap::const_iterator i = commands.begin(); i != commands.end(); ++i)
{
if (i->second->use_count)
@@ -207,7 +207,7 @@ void CommandStats::DoStats(char statschar, User* user, string_list &results)
{
results.push_back("249 "+user->nick+" :Users: "+ConvToStr(ServerInstance->Users->GetUsers().size()));
results.push_back("249 "+user->nick+" :Channels: "+ConvToStr(ServerInstance->GetChans().size()));
- results.push_back("249 "+user->nick+" :Commands: "+ConvToStr(ServerInstance->Parser->GetCommands().size()));
+ results.push_back("249 "+user->nick+" :Commands: "+ConvToStr(ServerInstance->Parser.GetCommands().size()));
float kbitpersec_in, kbitpersec_out, kbitpersec_total;
char kbitpersec_in_s[30], kbitpersec_out_s[30], kbitpersec_total_s[30];