[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/multiplayer.c
Keeps track of the marked multi players.
Called by the login handler, checking people against a list of
previous multiplayers, and if they are on the list, check if
they are already on.
vars are:
 string *gits: an array of names of suspected multiplayers
 string *denied_parcels: an array of names of multiplayers prevented from
                         using the parcel system for sending parcels
 mapping allowed: the keys are the names of verified non-multiplayers,
                  the values are the names of people they are allowed to
                  play with.
Includes
This class includes the following files /include/player_handler.h, /include/login_handler.h and /include/playerinfo.hMethod index
- add_allowed(string, string)
Adds a player to the allowed multi IP list.
 - add_denied_parcel(string)
Adds a user to the list of users not allowed to use the parcel system
Only Lords and Liaison deputies are allowed to add a user to this array
 - add_git(string)
Adds a player to the multiplayer list.
 - check_allowed(mixed, mixed *)
Called by the player object to see if a logon inform should be given
about duplicate players from the same IP address.
 - check_multiplayers(string, object, object)
 - delete_allowed(string)
Remove a person from allowed multi IP list.
 - member_denied_parcel(string)
Checks user against the parcels array
 - query_allowed(string)
Returns the current allowed multi player IP list
 - query_denied_parcels()
Returns the current list of players denied use of the parcel system.
 - record_object(string, object, object)
 - remove_denied_parcel(string)
Removes a user from the list of users not allowed to use the parcel system
Only Lords and Liaison deputies are allowed to remove a user from this array
 
Public Functions
These are functions that everyone can access.
- 
add_allowed
int add_allowed(string user,
                string other)
 
Adds a player to the allowed multi IP list.
- Parameters:
user - the name of the player
other - the name of another user which is not an alt
- Returns:
0 if they are not a user, 1 if they are
  
- 
add_denied_parcel
int add_denied_parcel(string user)
 
Adds a user to the list of users not allowed to use the parcel system
Only Lords and Liaison deputies are allowed to add a user to this array
- Parameters:
user - the name of the player
 
- 
add_git
int add_git(string git)
 
Adds a player to the multiplayer list.
- Parameters:
git - the name of the suspected multiplayer
- Returns:
0 if they are not a user, 1 if they are
  
- 
check_allowed
string * check_allowed(mixed user,
                       mixed * others)
 
Called by the player object to see if a logon inform should be given
about duplicate players from the same IP address.
- Parameters:
user - the player being checked
others - the others logged on from the same IP
- Returns:
array of not allowed dups
  
- 
check_multiplayers
int check_multiplayers(string action,
                       object player,
                       object item)
- 
delete_allowed
int delete_allowed(string user)
  
Remove a person from allowed multi IP list.
- Parameters:
user - the name of the player to remove
- Returns:
0 if they are not in the list, 1 if they are
  
- 
member_denied_parcel
int member_denied_parcel(string user)
 
Checks user against the parcels array
- Parameters:
user - the name of the player
 
- 
query_allowed
mapping query_allowed(string who)
 
Returns the current allowed multi player IP list
- Returns:
the list of allowed multi players
 
- 
query_denied_parcels
string * query_denied_parcels()
 
Returns the current list of players denied use of the parcel system.
- Returns:
the list of denied parcel users
 
- 
record_object
void record_object(string action,
                   object player,
                   object item)
- 
remove_denied_parcel
int remove_denied_parcel(string user)
  
Removes a user from the list of users not allowed to use the parcel system
Only Lords and Liaison deputies are allowed to remove a user from this array
- Parameters:
user - the name of the player
- Returns:
0 if they are not in the list, 1 if they are