- copy_tokenized_string(line, &world.cmd_db.cmds[i].dsc_short, " ");
- copy_tokenized_string(NULL, &world.cmd_db.cmds[i].dsc_long, "\n");
+ copy_tokenized_string(line, &world.commandDB.cmds[i].dsc_short, delim);
+ copy_tokenized_string(NULL, &world.commandDB.cmds[i].server_msg, delim);
+ if (!strcmp("0", world.commandDB.cmds[i].server_msg))
+ { /*.server_msg==0 detects*/
+ free(world.commandDB.cmds[i].server_msg); /* non-server commands */
+ world.commandDB.cmds[i].server_msg = NULL;/* in try_key() / */
+ } /* try_server_command().*/
+ char * arg_string = strtok(NULL, delim);
+ world.commandDB.cmds[i].arg = arg_string[0];
+ copy_tokenized_string(NULL, &world.commandDB.cmds[i].dsc_long, "\n");