bool CommandParser::CreateCommand(command_t *f)
{
/* create the command and push it onto the table */
- if (cmdlist.find(f->command) != cmdlist.end())
+ if (cmdlist.find(f->command) == cmdlist.end())
{
cmdlist[f->command] = f;
log(DEBUG,"Added command %s (%lu parameters)",f->command.c_str(),(unsigned long)f->min_params);