QUERY_REAL_NAME(L)

NAME
	query_real_name - return the real name of a player

SYNOPSIS
	string query_real_name();

LOCATION
	/obj/player.c

RETURN VALUE
	Always returns the actual, lower-case name of a player.

NOTES
	The query_name() function returns the capitalized name when called
	in a player, or "Someone" when he or she is invisible.  Thus it is
	not sufficient when you want to know absolutely who someone is.
	Hence the query_real_name() function.

	Among standard mudlib files, only player.c contains this function.
	It is not needed elsewhere.

EXAMPLES
	In your workroom's init():
	void init() {
	   if( (string) this_player()->query_real_name() != "earendil" ) {
	      write("Only Earendil is allowed in here!\n");
	      this_player()->move_player("out, in a hurry#/room/church");
	      return;
	   }
	   ::init();
	}

SEE ALSO
	query_name(L), set_name(L), id(L) 

Help topics available:
check_busy query_busy query_real_name query_puzzles set_puzzle

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 82 since November 2019.
This file was last modified: June 2000.