case CON_GET_NAME:
if ( argument[0] == '\0' )
{
close_socket( d );
return;
}
/* start patch for stats */
if (!str_cmp(argument,"stats")) {
display_status(d);
write_to_buffer(d,"Name: ",0);
return;
}
/* end patch for stats */
argument[0] = UPPER(argument[0]);
if ( !check_parse_name( argument ) )
{
write_to_buffer( d, "Illegal name, try another.\n\rName: ", 0 );
return;
}
static display_stats(d)
{
write_to_buffer( d, "CODEBASE Extremely Modified CircleMud\r\n", 0 );
write_to_buffer( d, "CREATED 1987\r\n", 0 );
write_to_buffer( d, "LANGUAGE Pig Latin\r\n", 0 );
write_to_buffer( d, "LOCATION My Basement\r\n", 0 );
write_to_buffer( d, "NAME Shattered Dreamlike Dimensions of the Epic Abyss of Unquenched Darkness and Pain\r\n", 0 );
write_to_buffer( d, "PLAYERS 5468\r\n", 0 ); /* This should be modified upward to keep your mud listed at the top! */
write_to_buffer( d, "UPTIME 150\r\n", 0 );
write_to_buffer( d, "\r\n", 0 );
}
I can invent a use case, but for the given data it could already be better organized as…