/*
* This grep idea was borrowed from SunderMud.
* * Reserved names list was getting much too large to load into memory.
* * Placed last so as to avoid problems from any of the previous conditions causing a problem in shell.
*/
char buf[MSL];
snprintf( buf, MSL, "grep -i -x %s ../system/reserved.lst > /dev/null", name );
if( system( buf ) == 0 && newchar )
{
buf[0] = '\0';
return false;
}
What I had been considering is trying to find a text based file that is perhaps the source of a spell checker or a dictionary, and then writing incorporating that into the check against illegal names when someone goes to create a new character.
I'm curious if anyone else had already attempted this and has any tips or would be willing to share what they've done.