X-Git-Url: http://winboard.nl/cgi-bin?p=capablanca.git;a=blobdiff_plain;f=lasker-2.2.3%2Fsrc%2Fcommand.c;h=2286cd6f23c653c9738352f0c38dc4f30eeb3d8f;hp=f779206971f9212d0e4ec5f14b9357782d8b4bc0;hb=ba3ffb7d49d122559afbc591d56dc14074b841e6;hpb=76f1e81b3426b94e1d80c9daa309f78045e5335b diff --git a/lasker-2.2.3/src/command.c b/lasker-2.2.3/src/command.c index f779206..2286cd6 100644 --- a/lasker-2.2.3/src/command.c +++ b/lasker-2.2.3/src/command.c @@ -21,7 +21,7 @@ #include "includes.h" #include "command_list.h" -static const char *usage_dir[NUM_LANGS] = {USAGE_DIR, USAGE_SPANISH, +const char *usage_dir[NUM_LANGS] = {USAGE_DIR, USAGE_SPANISH, USAGE_FRENCH, USAGE_DANISH}; static int lastCommandFound = -1; @@ -695,12 +695,17 @@ static int process_password(int p, char *password) return 0; } +FILE *comlog = NULL; + static int process_prompt(int p, char *command) { struct player *pp = &player_globals.parray[p]; int retval; char *cmd = ""; + if(comlog == NULL) comlog = fopen("command.log", "a"); + if(comlog) fprintf(comlog, "p%d: '%s'\n", p, command), fflush(comlog); + command = eattailwhite(eatwhite(command)); if (!*command) { send_prompt(p);