/*
 
	This function returns a pointer to the first matching character named, period
	As long as the character exists, and is loaded, and is not a mob, this will
        point to them, without needing a second character to base whether or not they
        can be seen. The primary usage for this, is for letting your mud quickly find and
        send messages to individuals who are logged on, such us when using a notice system,
        or tells, etc. Because it returns a pointer to the character, any required checks to
        specially validate the character can still be performed, without actually requiring them
        to be done within the search.

 */
CHAR_DATA *get_player_world( char *argument )
{
    CHAR_DATA *wch;

    /* check the world for an exact match */
    for ( wch = first_char; wch; wch = wch->next )
	if (nifty_is_name( argument, wch->name ) )
	    if ( !IS_NPC(wch) )
		return wch;

    for ( wch = first_char; wch; wch = wch->next )
    {
	if ( !nifty_is_name_prefix( argument, wch->name ) )
	    continue;
	if ( !IS_NPC(wch) )
	    return wch;
    }

    return NULL;
}