[an error occurred while processing this directive]
[<a href="index.shtml">Package Index</a></code> | <a href="index_std.shtml">Mudlib Index</a></code> | <a href="index_eff.shtml">Effect Index</a></code>]<br><h2>File /obj/handlers/multiplayer.c</h2>
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.
<pre><code>
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.
</pre></code>
<h2>Includes</h2>
This class includes the following files /include/player_handler.h, /include/login_handler.h and /include/playerinfo.h<h2>Method index</h2>
<ul>
<li><a href="#add_allowed">add_allowed</a>(string, string)<br/>
Adds a player to the allowed multi IP list.
<li><a href="#add_denied_parcel">add_denied_parcel</a>(string)<br/>
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
<li><a href="#add_git">add_git</a>(string)<br/>
Adds a player to the multiplayer list.
<li><a href="#check_allowed">check_allowed</a>(mixed, mixed *)<br/>
Called by the player object to see if a logon inform should be given
about duplicate players from the same IP address.
<li><a href="#check_multiplayers">check_multiplayers</a>(string, object, object)<li><a href="#delete_allowed">delete_allowed</a>(string)<br/>
Remove a person from allowed multi IP list.
<li><a href="#member_denied_parcel">member_denied_parcel</a>(string)<br/>
Checks user against the parcels array
<li><a href="#query_allowed">query_allowed</a>(string)<br/>
Returns the current allowed multi player IP list
<li><a href="#query_denied_parcels">query_denied_parcels</a>()<br/>
Returns the current list of players denied use of the parcel system.
<li><a href="#record_object">record_object</a>(string, object, object)<li><a href="#remove_denied_parcel">remove_denied_parcel</a>(string)<br/>
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
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_allowed">
add_allowed</a><pre class="autodocfuncdef">
int add_allowed(string user,
                string other)
</pre><dd><br />
Adds a player to the allowed multi IP list.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the name of the player<br />
other - the name of another user which is not an alt<br />
<br />
<dd><b>Returns:</b>
<br />0 if they are not a user, 1 if they are
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="add_denied_parcel">
add_denied_parcel</a><pre class="autodocfuncdef">
int add_denied_parcel(string user)
</pre><dd><br />
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<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the name of the player
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="add_git">
add_git</a><pre class="autodocfuncdef">
int add_git(string git)
</pre><dd><br />
Adds a player to the multiplayer list.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
git - the name of the suspected multiplayer<br />
<br />
<dd><b>Returns:</b>
<br />0 if they are not a user, 1 if they are
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="check_allowed">
check_allowed</a><pre class="autodocfuncdef">
string * check_allowed(mixed user,
                       mixed * others)
</pre><dd><br />
Called by the player object to see if a logon inform should be given
about duplicate players from the same IP address.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the player being checked<br />
others - the others logged on from the same IP<br />
<br />
<dd><b>Returns:</b>
<br />array of not allowed dups
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="check_multiplayers">
check_multiplayers</a><pre class="autodocfuncdef">
int check_multiplayers(string action,
                       object player,
                       object item)
</pre>
<dt class="autodocfuncname"><a name="delete_allowed">
delete_allowed</a><pre class="autodocfuncdef">
int delete_allowed(string user)
</pre><dd><br />
Remove a person from allowed multi IP list.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the name of the player to remove<br />
<br />
<dd><b>Returns:</b>
<br />0 if they are not in the list, 1 if they are
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="member_denied_parcel">
member_denied_parcel</a><pre class="autodocfuncdef">
int member_denied_parcel(string user)
</pre><dd><br />
Checks user against the parcels array<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the name of the player<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_allowed">
query_allowed</a><pre class="autodocfuncdef">
mapping query_allowed(string who)
</pre><dd><br />
Returns the current allowed multi player IP list<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the list of allowed multi players
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_denied_parcels">
query_denied_parcels</a><pre class="autodocfuncdef">
string * query_denied_parcels()
</pre><dd><br />
Returns the current list of players denied use of the parcel system.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the list of denied parcel users
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="record_object">
record_object</a><pre class="autodocfuncdef">
void record_object(string action,
                   object player,
                   object item)
</pre>
<dt class="autodocfuncname"><a name="remove_denied_parcel">
remove_denied_parcel</a><pre class="autodocfuncdef">
int remove_denied_parcel(string user)
</pre><dd><br />
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<br />
<br /><dl>
<dd><b>Parameters:</b><br />
user - the name of the player<br />
<br />
<dd><b>Returns:</b>
<br />0 if they are not in the list, 1 if they are
<br /><br />
<br /></dl>

</dl>
[an error occurred while processing this directive]

