From a99916512365d68d130c7dfdb3f7ac5e2e0bbe8a Mon Sep 17 00:00:00 2001 From: rodri Date: Sun, 17 Sep 2023 22:06:16 +0000 Subject: initial work on a menu of matches. also made some corrections and changed the tokenize(2) fields identifiers from cmd[] to f[]. --- btsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'btsd.c') diff --git a/btsd.c b/btsd.c index 8478b9d..c2a18bf 100644 --- a/btsd.c +++ b/btsd.c @@ -239,7 +239,7 @@ playerproc(void *arg) else{ chanprint(my->io.out, "matches\n"); for(m = theater.next; m != &theater; m = m->next) - chanprint(my->io.out, "%d %s vs. %s\n", m->id, m->pl[0]->name, m->pl[1]->name); + chanprint(my->io.out, "%d %s %s\n", m->id, m->pl[0]->name, m->pl[1]->name); chanprint(my->io.out, "end\n"); } runlock(&theaterlk); @@ -502,7 +502,7 @@ fprintmatches(int fd) if(theater.next == &theater) n += fprint(fd, "let there be peace\n"); else for(n = 0, m = theater.next; m != &theater; m = m->next) - n += fprint(fd, "%d\t%s vs. %s\n", m->id, m->pl[0]->name, m->pl[1]->name); + n += fprint(fd, "%d\t%s vs %s\n", m->id, m->pl[0]->name, m->pl[1]->name); runlock(&theaterlk); return n; } -- cgit v1.2.3