From 573e49a7ead331219eb6f0d3ca9cf83e793a5c9c Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 23 Apr 2012 05:08:26 -0400 Subject: Reworked live SQL support yet again --- modules/commands/help.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'modules/commands/help.cpp') diff --git a/modules/commands/help.cpp b/modules/commands/help.cpp index a329eb63c..7b7c52110 100644 --- a/modules/commands/help.cpp +++ b/modules/commands/help.cpp @@ -31,14 +31,14 @@ class CommandHelp : public Command return; User *u = source.u; - BotInfo *bi = source.owner; + const BotInfo *bi = source.owner; if (params.empty()) { - for (BotInfo::command_map::iterator it = bi->commands.begin(), it_end = bi->commands.end(); it != it_end; ++it) + for (BotInfo::command_map::const_iterator it = bi->commands.begin(), it_end = bi->commands.end(); it != it_end; ++it) { const Anope::string &c_name = it->first; - CommandInfo &info = it->second; + const CommandInfo &info = it->second; // Smaller command exists Anope::string cmd = myStrGetToken(c_name, ' ', 0); @@ -65,11 +65,11 @@ class CommandHelp : public Command full_command += " " + params[i]; full_command.erase(full_command.begin()); - BotInfo::command_map::iterator it = bi->commands.find(full_command); + BotInfo::command_map::const_iterator it = bi->commands.find(full_command); if (it == bi->commands.end()) continue; - CommandInfo &info = it->second; + const CommandInfo &info = it->second; service_reference c("Command", info.name); if (!c) -- cgit