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);
return 0;
}
+extern FILE *comlog;
+
int com_sought(int p, param_list param)
{
int i;
for (i = 0; i < seek_globals.max_ads; i++) {
if (seek_globals.ads[i].status == SEEKCLOSED) {
char *msgtxt = form_ad(&seek_globals.ads[i], i);
+if(comlog) fprintf(comlog, "msgtext = %s\n", msgtxt), fflush(comlog);
pprintf(p, "%s", msgtxt);
free(msgtxt);
}
rating = player_globals.parray[ad->whofrom].b_stats.rating;
}
+if(comlog) fprintf(comlog, "seek %d type = %d\n", i, type), fflush(comlog);
if(ad->category[0]) { // [HGM] print category with seek ad
sprintf(buf, " %s", ad->category);
if(ad->board_type[0] && strcmp(ad->board_type, "0"))