diff options
Diffstat (limited to 'src/cmd_commands.cpp')
-rw-r--r-- | src/cmd_commands.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_commands.cpp b/src/cmd_commands.cpp index 85437c2b0..41f68690e 100644 --- a/src/cmd_commands.cpp +++ b/src/cmd_commands.cpp @@ -16,14 +16,14 @@ /** Handle /COMMANDS */ -extern "C" DllExport command_t* init_command(InspIRCd* Instance) +extern "C" DllExport Command* init_command(InspIRCd* Instance) { return new cmd_commands(Instance); } CmdResult cmd_commands::Handle (const char** parameters, int pcnt, userrec *user) { - for (command_table::iterator i = ServerInstance->Parser->cmdlist.begin(); i != ServerInstance->Parser->cmdlist.end(); i++) + for (Commandable::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); } |