X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=src%2Fttt-client.c;h=7b37fad3c5ecade9e6acc9ec6bd98a78c5f9b6d6;hp=53cc4ff3556ce728669a8833919a85c19d197a01;hb=e26c0a51dea5e5ade3bdf081f29500a0fe3944d3;hpb=e2c8706061d31d48f9516297d118d230354a5949 diff --git a/src/ttt-client.c b/src/ttt-client.c index 53cc4ff..7b37fad 100644 --- a/src/ttt-client.c +++ b/src/ttt-client.c @@ -109,6 +109,9 @@ _ttt_client_execute_helo (ttt_client_t *client, ttt_client_send (client, response); + xasprintf (&response, "NOTICE USER %s\n",client->name); + ttt_server_broadcast(client->server,response); + free (response); return TTT_ERROR_NONE; @@ -137,8 +140,12 @@ _ttt_client_execute_quit (ttt_client_t *client, char **args, int num_args) { - assert (num_args == 0); + char *notice; + assert (num_args == 0); + xasprintf (¬ice,"NOTICE QUIT %s\n",client->name); + ttt_server_broadcast(client->server,notice); + free (notice); return TTT_ERROR_QUIT_REQUESTED; }