summaryrefslogtreecommitdiff
path: root/src/cmd_commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_commands.cpp')
-rw-r--r--src/cmd_commands.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp
index 6ad8ae8b0..961c8db88 100644
--- a/src/cmd_commands.cpp
+++ b/src/cmd_commands.cpp
@@ -47,9 +47,9 @@ extern InspIRCd* ServerInstance;
void cmd_commands::Handle (char **parameters, int pcnt, userrec *user)
{
- for (unsigned int i = 0; i < ServerInstance->Parser->cmdlist.size(); i++)
+ for (nspace::hash_map<std::string,command_t*>::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
{
- WriteServ(user->fd,"902 %s :%s %s %d",user->nick,ServerInstance->Parser->cmdlist[i]->command.c_str(),ServerInstance->Parser->cmdlist[i]->source.c_str(),ServerInstance->Parser->cmdlist[i]->min_params);
+ WriteServ(user->fd,"902 %s :%s %s %d",user->nick,i->second->command.c_str(),i->second->source.c_str(),i->second->min_params);
}
WriteServ(user->fd,"903 %s :End of COMMANDS list",user->nick);
}