]> git.cworth.org Git - ttt/blobdiff - src/ttt-client.c
2005-11-25 Bryan Worth <bryan@theworths.org>
[ttt] / src / ttt-client.c
index 53cc4ff3556ce728669a8833919a85c19d197a01..7b37fad3c5ecade9e6acc9ec6bd98a78c5f9b6d6 100644 (file)
@@ -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 (&notice,"NOTICE QUIT %s\n",client->name);
+    ttt_server_broadcast(client->server,notice);
+    free (notice);
     return TTT_ERROR_QUIT_REQUESTED;
 }