From f15165b49a873aade78e50555d12df4e11189119 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 7 May 2007 18:51:47 +0000 Subject: we typedeffed nspace::hash_map to command_table ages ago. Now its time we used it! command_table::iterator is far neater than nspace::hash_map::iterator git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6907 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_commands.cpp') 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::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); } -- cgit v1.2.3