summaryrefslogtreecommitdiff
path: root/src/cmd_commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-07 18:51:47 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-07 18:51:47 +0000
commitf15165b49a873aade78e50555d12df4e11189119 (patch)
treebd2f8849210b28b7368ecd2537de6a85f7516185 /src/cmd_commands.cpp
parent95f1be0b6f88cf93d164659d01832d6084483c2b (diff)
we typedeffed nspace::hash_map<std::string,command_t*> to command_table ages ago.
Now its time we used it! command_table::iterator is far neater than nspace::hash_map<std::string,command_t*>::iterator git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6907 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_commands.cpp')
-rw-r--r--src/cmd_commands.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp
index e4efdacea..848070e40 100644
--- a/src/cmd_commands.cpp
+++ b/src/cmd_commands.cpp
@@ -24,7 +24,7 @@ extern "C" command_t* init_command(InspIRCd* Instance)
CmdResult cmd_commands::Handle (const char** parameters, int pcnt, userrec *user)
{
- for (nspace::hash_map<std::string,command_t*>::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
+ for (command_table::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++)
{
user->WriteServ("902 %s :%s %s %d",user->nick,i->second->command.c_str(),i->second->source.c_str(),i->second->min_params);
}