[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.h

Method index

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