ref: c53468b58131b4c52da5b1a56c289aafc7175bff
parent: ea3be59529a3aeb354b86789f0790575cb2b77e3
author: mkf <mkf@cloud9p.org>
date: Wed Jun 5 07:31:05 EDT 2024
srv5: send nicks as well
--- a/srv5.c
+++ b/srv5.c
@@ -447,16 +447,16 @@
sockfd[0] = c1->fd;
sockfd[1] = c2->fd;
- initlevel();
g = (Game*)emalloc(sizeof(Game));
llappend(games, g);
+ initlevel();
setgame(gcount);
if(debug)
drawlevel();
- fprint(g->sockfd[0], "CONN %d\n", 0);
- fprint(g->sockfd[1], "CONN %d\n", 1);
+ fprint(g->sockfd[0], "CONN %d %s\n", 0, c2->nick);
+ fprint(g->sockfd[1], "CONN %d %s\n", 1, c1->nick);
sendlevel();