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;
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;
}