+static ttt_error_t
+_ttt_client_execute_message (ttt_client_t *client,
+ char **args,
+ int num_args)
+{
+ char *response;
+ int i;
+
+ assert (num_args > 0);
+
+ xasprintf(&response, "MESSAGE\n");
+ ttt_client_send (client, response);
+
+ xasprintf(&response, "NOTICE MESSAGE %s", client->name);
+ for (i=0; i<num_args; i++){
+ xasprintf(&response, "%s %s",response,args[i]);
+
+ }
+ xasprintf(&response, "%s\n",response);
+ ttt_server_broadcast (client->server,response);
+
+ free (response);
+ return TTT_ERROR_NONE;
+
+
+}
+