/* Writes to a descriptor, usually best used when there's no character to send to ( like logins ) */
void send_to_desc_color( const char *txt, DESCRIPTOR_DATA * d )
{
if( !d )
{
bug( "%s: NULL *d", __FUNCTION__ );
return;
}
if( !txt )
{
bug( "%s: NULL txt", __FUNCTION__ );
return;
}
/* if( !d->descriptor )
{
bug( "%s: NULL d->descriptor", __FUNCTION__ );
return;
}
*/
write_to_buffer( d, colorize( txt, d ), 0 );
}
When someone connects and are assigned a descriptor of 0, this function won't send them anything because of the ifcheck !d->descriptor. I commented it out and connected, was assigned a descriptor of 0 and logged into the MUD without crashing anything, then connected in another window and was assigned a descriptor of 6, and myself and another player already had descriptors of 4 and 5. Is being assigned a descriptor of 0 not okay and is this check inside send_to_desc_color unncessary if a descriptor of 0 is okay? Check is inside stock FUSS bases.