[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/inherit/club_elected.c</h2>
This is the handler for all things clubby, a club being a group of
players.  Each club must have a unique name.  It also handles elections
for various club positions.<p>Written by Pinkfish<p>Started Sun Sep 27 03:35:42 EDT 1998
<h2>Inherits</h2>
This class inherits the following classes <a href="obj.handlers.inherit.club_family.c.shtml">/obj/handlers/inherit/club_family.c</a><h2>Includes</h2>
This class includes the following files /include/clubs.h, /include/player_handler.h, /include/mail.h, /include/board.h and /include/am_time.h<h2>Class Index</h2>
<ul><li><a href="#class_account_info">account_info</a>
<br/>
This class keeps track of the accounts, it has the transaction
info for the account and other stuff.
<li><a href="#class_election_data">election_data</a>
<br/>
This class which keeps track of a currently running election.
<li><a href="#class_election_info">election_info</a>
<br/>
This is for an elected club, elected clubs ellect their officals and
stuff.
</ul><h2>Method index</h2>
<ul>
<li><a href="#add_account_allowed_person">add_account_allowed_person</a>(string, string, string)<br/>
This method adds a person to the allowed people array.
<li><a href="#add_account_allowed_position">add_account_allowed_position</a>(string, string, string)<br/>
This method adds a position to the allowed positions array.
<li><a href="#add_archive">add_archive</a>(string, string, string)<br/>
This method adds to the archives of things for the current club.
<li><a href="#add_money">add_money</a>(string, int, int, string, string, string)<br/>
This method will pay a certain amount of money to club.
<li><a href="#change_position_name_in_club">change_position_name_in_club</a>(string, string, string)<br/>
This method changes the name of the position in the club.
<li><a href="#check_board_post">check_board_post</a>(int, string, string, string, int)<br/>
This method checks to see what access the person has to the board.
<li><a href="#check_elected_information">check_elected_information</a>(string, string, int)<br/>
This method checks the extra information for the club.
<li><a href="#complete_election">complete_election</a>(string)<br/>
This method completes the election.
<li><a href="#create_club_board">create_club_board</a>(string)<br/>
This method creates a board for the club.
<li><a href="#create_position_in_club">create_position_in_club</a>(string, string)<br/>
This method creates a position in the club.
<li><a href="#do_mail_committee">do_mail_committee</a>(string, string, string)<br/>
This method will mail a messsage to the committee.
<li><a href="#finish_nomination">finish_nomination</a>(string)<br/>
This method finishes the nomination stuff.
<li><a href="#has_nominated_person">has_nominated_person</a>(string, string, string, string)<br/>
This method checks to see if the person has already nominated
someone for this position.
<li><a href="#has_person_voted">has_person_voted</a>(string, string, string)<br/>
This method checks to see if the person has already voted in the election.
<li><a href="#holds_any_position_of">holds_any_position_of</a>(string, string)<br/>
This method will determine if the specified person holds any
position in the club.
<li><a href="#holds_position_of">holds_position_of</a>(string, string, string)<br/>
This method will determine if the specified person holds a
position in the club.
<li><a href="#is_allowed_to_modify_account">is_allowed_to_modify_account</a>(string, string, string)<br/>
This method checks to see if the specified person is allowed to
access the account.
<li><a href="#is_basic_position">is_basic_position</a>(string, string)<br/>
This method determines if the position is one of the 4 basic positions.
<li><a href="#is_elected_option">is_elected_option</a>(string, string)<br/>
This method checks to see if the specified option exists in this
club.
<li><a href="#is_election_in_progress">is_election_in_progress</a>(string)<br/>
This method checks to see if there is currently an election in progress.
<li><a href="#is_nominated_for">is_nominated_for</a>(string, string, string)<br/>
This method checks to see if the specified person has been nominated for
the position.
<li><a href="#is_nomination_accepted">is_nomination_accepted</a>(string, string, string)<br/>
This method checks to see if the nomination has been accepted.
<li><a href="#is_nomination_in_progress">is_nomination_in_progress</a>(string)<br/>
This method checks to see if the election is in the nomination phase.
<li><a href="#is_president_of">is_president_of</a>(string, string)<br/>
This method will determine if the specified person is the president of
the club.
<li><a href="#is_secretary_of">is_secretary_of</a>(string, string)<br/>
This method will determine if the specified person is the secretary of
the club.
<li><a href="#is_treasurer_of">is_treasurer_of</a>(string, string)<br/>
This method will determine if the specified person is the treasurer of
the club.
<li><a href="#is_valid_position">is_valid_position</a>(string, string)<br/>
This method determines if this is a valid position for the club.
<li><a href="#is_vice_president_of">is_vice_president_of</a>(string, string)<br/>
This method will determine if the specified person is the vice president of
the club.
<li><a href="#is_voting_in_progress">is_voting_in_progress</a>(string)<br/>
This method checks to see if the election is in the voting phase.
<li><a href="#nominate_person">nominate_person</a>(string, string, string, string)<br/>
This method nominates someone for a certain position in the club.
<li><a href="#query_account_allowed_people">query_account_allowed_people</a>(string, string)<br/>
This method returns the people which allowed to manipulate the
account.
<li><a href="#query_account_allowed_positions">query_account_allowed_positions</a>(string, string)<br/>
This method returns the positions which are allowed to manipulate the
account.
<li><a href="#query_account_info">query_account_info</a>(string, string)<br/>
This method returns the information about the specified account.
<li><a href="#query_announcement">query_announcement</a>(string)<br/>
This method returns the current announcement string.
<li><a href="#query_announcement_time">query_announcement_time</a>(string)<br/>
This method returns the time at which the current announcement
was added.
<li><a href="#query_archives">query_archives</a>(string)<br/>
This method returns the archives for this club.
<li><a href="#query_boards">query_boards</a>()<br/>
This method returns all the clubs which currently have boards.
<li><a href="#query_club_board">query_club_board</a>(string)<br/>
This method checks to see if the club has a board.
<li><a href="#query_club_board_name">query_club_board_name</a>(string)<br/>
This method returns the name of the board for the club.
<li><a href="#query_committee">query_committee</a>(string)<br/>
This method returns the committee of the club.
<li><a href="#query_elected_info">query_elected_info</a>(string)<br/>
This method returns the elected info associated with the club.
<li><a href="#query_elected_option">query_elected_option</a>(string, string)<br/>
This method queries the option in the club.
<li><a href="#query_election_status">query_election_status</a>(string)<br/>
This method queries the status associated with the election.
<li><a href="#query_last_election">query_last_election</a>(string)<br/>
This method returns the time of the last election.
<li><a href="#query_minimum_next_election">query_minimum_next_election</a>(string)<br/>
This method returns the minimum time between elections.
<li><a href="#query_next_election">query_next_election</a>(string)<br/>
This method returns the time of the next election.
<li><a href="#query_next_event_time">query_next_event_time</a>(string)<br/>
This method returns the time the next event will occur.
<li><a href="#query_nominated_for">query_nominated_for</a>(string, string)<br/>
This method returns the list of people that have been nominated for
the specified position in the specified club.
<li><a href="#query_nominators_for">query_nominators_for</a>(string, string, string)<br/>
This method returns the people who nominated the specified person
to the position.
<li><a href="#query_position_members">query_position_members</a>(string, string)<br/>
This method returns the members of the particular position.
<li><a href="#query_position_name">query_position_name</a>(string, string)<br/>
This method figures out the actualy index of the position in the mappings
and stuff associated with the position.
<li><a href="#query_transaction_type_name">query_transaction_type_name</a>(int)<br/>
This method returns the string name of the transaction type.
<li><a href="#query_transactions">query_transactions</a>(string, string)<br/>
This method returns the transaction history for the club.
<li><a href="#query_valid_positions">query_valid_positions</a>(string)<br/>
This method returns the list of available positions for the club.
<li><a href="#remove_account_allowed_person">remove_account_allowed_person</a>(string, string, string)<br/>
This method removes a person from the allowed people array.
<li><a href="#remove_account_allowed_position">remove_account_allowed_position</a>(string, string, string)<br/>
This method removes a position from the allowed positions array.
<li><a href="#remove_club_board">remove_club_board</a>(string)<br/>
This method removes the club's board.
<li><a href="#remove_elected_option">remove_elected_option</a>(string, string)<br/>
This method removes an option in the club.
<li><a href="#remove_money">remove_money</a>(string, int, int, string, string, string)<br/>
This method removes money from the account.
<li><a href="#remove_position_in_club">remove_position_in_club</a>(string, string)<br/>
This method removes a position from a club.
<li><a href="#set_announcement">set_announcement</a>(string, string)<br/>
This sets the current announcement.
<li><a href="#set_elected_option">set_elected_option</a>(string, string, mixed)<br/>
This method sets an option in the club.
<li><a href="#set_position_holder">set_position_holder</a>(string, string, string)<br/>
This method sets the specified person as the holder of the position.
<li><a href="#start_election">start_election</a>(string)<br/>
This method starts an election for the specified club.
<li><a href="#vote_for_person">vote_for_person</a>(string, string, string, string)<br/>
This method sets up a vote for a specific person for a position.
</ul>
<h2>Public Functions</h2>
These are functions that everyone can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_account_allowed_person">
add_account_allowed_person</a><pre class="autodocfuncdef">
int add_account_allowed_person(string club_name,
                               string account,
                               string person)
</pre><dd><br />
This method adds a person to the allowed people array.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
person - the person to add to the array<br />
<br />
<dd><b>See also:</b>
<br /><a href="#remove_acount_allowed_person">remove_acount_allowed_person()</a> and <a href="#query_account_allowed_person">query_account_allowed_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="add_account_allowed_position">
add_account_allowed_position</a><pre class="autodocfuncdef">
int add_account_allowed_position(string club_name,
                                 string account,
                                 string position)
</pre><dd><br />
This method adds a position to the allowed positions array.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
position - the position to add to the array<br />
<br />
<dd><b>See also:</b>
<br /><a href="#remove_acount_allowed_position">remove_acount_allowed_position()</a> and <a href="#query_account_allowed_position">query_account_allowed_position()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="add_money">
add_money</a><pre class="autodocfuncdef">
int add_money(string name,
              int amount,
              int type,
              string person,
              string account,
              string information)
</pre><dd><br />
This method will pay a certain amount of money to club.  This will be
how long the club is payed until.  The club will cost a certain
amount for each member as well as a base cost.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club<br />
amount - the amount to add<br />
type - the type of transaction<br />
person - the person doing the transaction<br />
account - the account being changed<br />
information - the information about the deposit<br />
<br />
<dd><b>Returns:</b>
<br />the amount of money not able to be placed in the account<br /><br />
<dd><b>See also:</b>
<br /><a href="#remove_money">remove_money()</a>, <a href="#query_balance">query_balance()</a> and <a href="#query_transactions">query_transactions()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="change_position_name_in_club">
change_position_name_in_club</a><pre class="autodocfuncdef">
int change_position_name_in_club(string name,
                                 string position,
                                 string new_position)
</pre><dd><br />
This method changes the name of the position in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to create the position in<br />
position - the name of the position to change<br />
new_position - the new name of the position<br />
<br />
<dd><b>See also:</b>
<br /><a href="#create_position_in_club">create_position_in_club()</a> and <a href="#is_valid_position">is_valid_position()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="check_board_post">
check_board_post</a><pre class="autodocfuncdef">
int check_board_post(int type,
                     string board,
                     string previous,
                     string name,
                     int num)
</pre><dd><br />
This method checks to see what access the person has to the board.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type of operation<br />
board - the name of the board<br />
previous - the previous object<br />
name - the name of the person reading the message<br />
num - the number of posts blasted when posting<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="complete_election">
complete_election</a><pre class="autodocfuncdef">
int complete_election(string club_name)
</pre><dd><br />
This method completes the election.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club the election is being completed for<br />
<br />
<dd><b>See also:</b>
<br /><a href="#start_election">start_election()</a>, <a href="#finish_nomination">finish_nomination()</a>, <a href="#nominate_person">nominate_person()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="create_club_board">
create_club_board</a><pre class="autodocfuncdef">
int create_club_board(string club_name)
</pre><dd><br />
This method creates a board for the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to create the board for<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_club_board">query_club_board()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="create_position_in_club">
create_position_in_club</a><pre class="autodocfuncdef">
int create_position_in_club(string name,
                            string position)
</pre><dd><br />
This method creates a position in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to create the position in<br />
position - the name of the position<br />
<br />
<dd><b>See also:</b>
<br /><a href="#query_position_members">query_position_members()</a>, <a href="#is_valid_position">is_valid_position()</a> and <a href="#query_valid_positions">query_valid_positions()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="finish_nomination">
finish_nomination</a><pre class="autodocfuncdef">
mixed finish_nomination(string club_name)
</pre><dd><br />
This method finishes the nomination stuff.  The return will be 0 if the
election is not valid for this club.  If the election was valid it will
return an array of positions that do not have enough nominated people to
complete the election for.  If the return array is 0 in size then the
next phase of the election is setup.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to finish the nomination for<br />
<br />
<dd><b>Returns:</b>
<br />see description for return values<br /><br />
<dd><b>See also:</b>
<br /><a href="#start_election">start_election()</a>, <a href="#nominate_person">nominate_person()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="has_nominated_person">
has_nominated_person</a><pre class="autodocfuncdef">
int has_nominated_person(string club_name,
                         string position,
                         string nominated,
                         string by)
</pre><dd><br />
This method checks to see if the person has already nominated
someone for this position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position they have voted in<br />
person - the person to check to see if they have voted<br />
<br />
<dd><b>See also:</b>
<br /><a href="#is_valid_position">is_valid_position()</a>, <a href="#vote_for_person">vote_for_person()</a> and <a href="#has_person_voted">has_person_voted()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="has_person_voted">
has_person_voted</a><pre class="autodocfuncdef">
int has_person_voted(string club_name,
                     string position,
                     string person)
</pre><dd><br />
This method checks to see if the person has already voted in the election.
If the position is not being voted on then, then it will always assume
they have voted for that position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position they have voted in<br />
person - the person to check to see if they have voted<br />
<br />
<dd><b>Returns:</b>
<br />1 if they have voted, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#is_valid_position">is_valid_position()</a>, <a href="#vote_for_person">vote_for_person()</a> and <a href="#has_nominated_person">has_nominated_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="holds_any_position_of">
holds_any_position_of</a><pre class="autodocfuncdef">
int holds_any_position_of(string name,
                          string person)
</pre><dd><br />
This method will determine if the specified person holds any
position in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check for the positions<br />
person - the name of the person to check in the positions<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="holds_position_of">
holds_position_of</a><pre class="autodocfuncdef">
int holds_position_of(string name,
                      string position,
                      string person)
</pre><dd><br />
This method will determine if the specified person holds a
position in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check for the position<br />
position - the name of the position to check<br />
person - the name of the person to check in the position<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#holds_any_position_of">holds_any_position_of()</a>, <a href="#is_secretary_of">is_secretary_of()</a>, <a href="#is_president_of">is_president_of()</a>, <a href="#is_vice_president_of">is_vice_president_of()</a> and <a href="#is_treasurer_of">is_treasurer_of()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_allowed_to_modify_account">
is_allowed_to_modify_account</a><pre class="autodocfuncdef">
int is_allowed_to_modify_account(string club_name,
                                 string account,
                                 string person)
</pre><dd><br />
This method checks to see if the specified person is allowed to
access the account.  It checks based on both position and name.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
person - the person's name to check<br />
<br />
<dd><b>Returns:</b>
<br />1 if they can access the account, 0 if they cannot<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_account_allowed_people">query_account_allowed_people()</a>, <a href="#add_money">add_money()</a>, <a href="#remove_money">remove_money()</a> and <a href="#query_account_allowed_positions">query_account_allowed_positions()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_basic_position">
is_basic_position</a><pre class="autodocfuncdef">
int is_basic_position(string club_name,
                      string position)
</pre><dd><br />
This method determines if the position is one of the 4 basic positions.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to check<br />
position - the position to check<br />
<br />
<dd><b>Returns:</b>
<br />1 if it is, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#is_valid_position">is_valid_position()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_elected_option">
is_elected_option</a><pre class="autodocfuncdef">
int is_elected_option(string club_name,
                      string option)
</pre><dd><br />
This method checks to see if the specified option exists in this
club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
option - the name of the option to test<br />
<br />
<dd><b>Returns:</b>
<br />1 if the option exists, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#set_elected_option">set_elected_option()</a> and <a href="#query_elected_option">query_elected_option()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_election_in_progress">
is_election_in_progress</a><pre class="autodocfuncdef">
int is_election_in_progress(string club)
</pre><dd><br />
This method checks to see if there is currently an election in progress.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to check for an election<br />
<br />
<dd><b>Returns:</b>
<br />1 if there is an election in progress, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#complete_election">complete_election()</a>, <a href="#start_election">start_election()</a>, <a href="#is_nomination_in_progress">is_nomination_in_progress()</a> and <a href="#is_voting_in_progress">is_voting_in_progress()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_nominated_for">
is_nominated_for</a><pre class="autodocfuncdef">
int is_nominated_for(string club_name,
                     string position,
                     string person)
</pre><dd><br />
This method checks to see if the specified person has been nominated for
the position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position they have been nominated for<br />
person - the person who is nominated to that position<br />
<br />
<dd><b>Returns:</b>
<br />1 if they have been nominated, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#has_person_voted">has_person_voted()</a>, <a href="#nominate_person">nominate_person()</a>, <a href="#is_valid_position">is_valid_position()</a> and <a href="#is_nomination_accepted">is_nomination_accepted()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_nomination_accepted">
is_nomination_accepted</a><pre class="autodocfuncdef">
int is_nomination_accepted(string club_name,
                           string position,
                           string person)
</pre><dd><br />
This method checks to see if the nomination has been accepted.  Currently
a nomination is accepted if there is more than 2 people nominated and one
of them is the person who is nominated.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to check<br />
position - the position they are nominated for<br />
person - the person who has been nominated<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are nominated, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#is_nominated_for">is_nominated_for()</a> and <a href="#query_nominators_for">query_nominators_for()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_nomination_in_progress">
is_nomination_in_progress</a><pre class="autodocfuncdef">
int is_nomination_in_progress(string club)
</pre><dd><br />
This method checks to see if the election is in the nomination phase.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club - the name of the club to check<br />
<br />
<dd><b>See also:</b>
<br /><a href="#is_election_in_progress">is_election_in_progress()</a> and <a href="#is_voting_in_progress">is_voting_in_progress()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_president_of">
is_president_of</a><pre class="autodocfuncdef">
int is_president_of(string name,
                    string president)
</pre><dd><br />
This method will determine if the specified person is the president of
the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check the president of<br />
president - the person to check for being the president<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="is_secretary_of">
is_secretary_of</a><pre class="autodocfuncdef">
int is_secretary_of(string name,
                    string secretary)
</pre><dd><br />
This method will determine if the specified person is the secretary of
the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check the secretary of<br />
secretary - the person to check to see if they are the secretary<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="is_treasurer_of">
is_treasurer_of</a><pre class="autodocfuncdef">
int is_treasurer_of(string name,
                    string treasurer)
</pre><dd><br />
This method will determine if the specified person is the treasurer of
the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check the treasurer of<br />
treasurer - the person to check to see if they are the treasurer<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="is_valid_position">
is_valid_position</a><pre class="autodocfuncdef">
int is_valid_position(string club_name,
                      string position)
</pre><dd><br />
This method determines if this is a valid position for the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position to check<br />
<br />
<dd><b>Returns:</b>
<br />1 if the position is ok, 0 if not<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_valid_positions">query_valid_positions()</a>, <a href="#nominate_person">nominate_person()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="is_vice_president_of">
is_vice_president_of</a><pre class="autodocfuncdef">
int is_vice_president_of(string name,
                         string vice_president)
</pre><dd><br />
This method will determine if the specified person is the vice president of
the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check the vice president of<br />
vice_president - the person to check for being the vice president<br />
<br />
<dd><b>Returns:</b>
<br />1 if they are in the position, 0 if not
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="is_voting_in_progress">
is_voting_in_progress</a><pre class="autodocfuncdef">
int is_voting_in_progress(string club)
</pre><dd><br />
This method checks to see if the election is in the voting phase.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club - the name of the club to check<br />
<br />
<dd><b>See also:</b>
<br /><a href="#is_election_in_progress">is_election_in_progress()</a> and <a href="#is_nomination_in_progress">is_nomination_in_progress()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="nominate_person">
nominate_person</a><pre class="autodocfuncdef">
int nominate_person(string club_name,
                    string position,
                    string person,
                    string nominating)
</pre><dd><br />
This method nominates someone for a certain position in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to nominate someone in<br />
position - the position to nominate someone for<br />
person - the person to nominate<br />
nominating - the person doing the nominating<br />
<br />
<dd><b>Returns:</b>
<br />1 if successfuly nominated<br /><br />
<dd><b>See also:</b>
<br /><a href="#start_election">start_election()</a>, <a href="#finish_nomination">finish_nomination()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_account_allowed_people">
query_account_allowed_people</a><pre class="autodocfuncdef">
string * query_account_allowed_people(string club_name,
                                      string account)
</pre><dd><br />
This method returns the people which allowed to manipulate the
account.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
<br />
<dd><b>Returns:</b>
<br />the array of people which can manipulate the account<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_acount_allowed_person">add_acount_allowed_person()</a> and <a href="#remove_account_allowed_person">remove_account_allowed_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_account_allowed_positions">
query_account_allowed_positions</a><pre class="autodocfuncdef">
string * query_account_allowed_positions(string club_name,
                                         string account)
</pre><dd><br />
This method returns the positions which are allowed to manipulate the
account.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
<br />
<dd><b>Returns:</b>
<br />the array of people which can manipulate the account
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_announcement">
query_announcement</a><pre class="autodocfuncdef">
string query_announcement(string club_name)
</pre><dd><br />
This method returns the current announcement string.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
<br />
<dd><b>Returns:</b>
<br />the announcement string
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_announcement_time">
query_announcement_time</a><pre class="autodocfuncdef">
int query_announcement_time(string club_name)
</pre><dd><br />
This method returns the time at which the current announcement
was added.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
<br />
<dd><b>Returns:</b>
<br />the time the announcement was added
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_archives">
query_archives</a><pre class="autodocfuncdef">
class club_archive * query_archives(string club_name)
</pre><dd><br />
This method returns the archives for this club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to get archives from<br />
<br />
<dd><b>Returns:</b>
<br />the archives for the club
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_boards">
query_boards</a><pre class="autodocfuncdef">
string * query_boards()
</pre><dd><br />
This method returns all the clubs which currently have boards.
This is their normalised names.<br />
<br /><dl>
<dd><b>Returns:</b>
<br />the list of boards
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_club_board">
query_club_board</a><pre class="autodocfuncdef">
int query_club_board(string club_name)
</pre><dd><br />
This method checks to see if the club has a board.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to check<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_boards">query_boards()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_club_board_name">
query_club_board_name</a><pre class="autodocfuncdef">
string query_club_board_name(string club_name)
</pre><dd><br />
This method returns the name of the board for the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to get the board for<br />
<br />
<dd><b>Returns:</b>
<br />the name of the club, 0 if no board
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_committee">
query_committee</a><pre class="autodocfuncdef">
string * query_committee(string club_name)
</pre><dd><br />
This method returns the committee of the club.  The committee is anyone
who holds a position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
<br />
<dd><b>Returns:</b>
<br />the array of people who hold positions
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_elected_option">
query_elected_option</a><pre class="autodocfuncdef">
mixed query_elected_option(string club_name,
                           string option)
</pre><dd><br />
This method queries the option in the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
option - the name of the option to query<br />
<br />
<dd><b>Returns:</b>
<br />the value of the option<br /><br />
<dd><b>See also:</b>
<br /><a href="#set_elected_option">set_elected_option()</a> and <a href="#is_elected_option">is_elected_option()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_election_status">
query_election_status</a><pre class="autodocfuncdef">
string query_election_status(string club_name)
</pre><dd><br />
This method queries the status associated with the election.  The
status will say things like when certain positions have not been
voted for and other such stuff.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club - the club name to get the status of<br />
<br />
<dd><b>Returns:</b>
<br />the status string of the club<br /><br />
<dd><b>See also:</b>
<br /><a href="#complete_election">complete_election()</a> and <a href="#finish_nomination">finish_nomination()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_last_election">
query_last_election</a><pre class="autodocfuncdef">
int query_last_election(string name)
</pre><dd><br />
This method returns the time of the last election.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to get the time for<br />
<br />
<dd><b>Returns:</b>
<br />the time of the last election
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_minimum_next_election">
query_minimum_next_election</a><pre class="autodocfuncdef">
int query_minimum_next_election(string name)
</pre><dd><br />
This method returns the minimum time between elections.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to get the time for<br />
<br />
<dd><b>Returns:</b>
<br />the minimum time for the next election
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_next_election">
query_next_election</a><pre class="autodocfuncdef">
int query_next_election(string name)
</pre><dd><br />
This method returns the time of the next election.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to get the time for<br />
<br />
<dd><b>Returns:</b>
<br />the time of the next election
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_next_event_time">
query_next_event_time</a><pre class="autodocfuncdef">
int query_next_event_time(string club_name)
</pre><dd><br />
This method returns the time the next event will occur.  The next event
will be either the end of the nomination phase or the end of the
voting phase.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to get the event of<br />
<br />
<dd><b>Returns:</b>
<br />the time of the next event<br /><br />
<dd><b>See also:</b>
<br /><a href="#complete_election">complete_election()</a>, <a href="#start_election">start_election()</a> and <a href="#finish_nomination">finish_nomination()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_nominated_for">
query_nominated_for</a><pre class="autodocfuncdef">
string * query_nominated_for(string club_name,
                             string position)
</pre><dd><br />
This method returns the list of people that have been nominated for
the specified position in the specified club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position to get the names of<br />
<br />
<dd><b>See also:</b>
<br /><a href="#is_nominate_for">is_nominate_for()</a> and <a href="#nominate_person">nominate_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_nominators_for">
query_nominators_for</a><pre class="autodocfuncdef">
string * query_nominators_for(string club_name,
                              string position,
                              string nominated)
</pre><dd><br />
This method returns the people who nominated the specified person
to the position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position they were nominated for<br />
nominated - the person who was nominated<br />
<br />
<dd><b>Returns:</b>
<br />who nominated them<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_nominated_for">query_nominated_for()</a> and <a href="#is_nomination_accepted">is_nomination_accepted()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_position_members">
query_position_members</a><pre class="autodocfuncdef">
string query_position_members(string club_name,
                              string position)
</pre><dd><br />
This method returns the members of the particular position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the name of the position<br />
<br />
<dd><b>Returns:</b>
<br />the array of members of the position<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_valid_position">query_valid_position()</a> and <a href="#is_valid_position">is_valid_position()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_position_name">
query_position_name</a><pre class="autodocfuncdef">
string query_position_name(string club_name,
                           string position)
</pre><dd><br />
This method figures out the actualy index of the position in the mappings
and stuff associated with the position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
position - the position to create the index for<br />
<br />
<dd><b>Returns:</b>
<br />the position index<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_valid_positions">query_valid_positions()</a>, <a href="#nominate_person">nominate_person()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_transaction_type_name">
query_transaction_type_name</a><pre class="autodocfuncdef">
string query_transaction_type_name(int type)
</pre><dd><br />
This method returns the string name of the transaction type.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
type - the type to return the transaction type for<br />
<br />
<dd><b>Returns:</b>
<br />the nice transaction type<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_transactions">query_transactions()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_transactions">
query_transactions</a><pre class="autodocfuncdef">
class club_transaction * query_transactions(string name,
                                            string account)
</pre><dd><br />
This method returns the transaction history for the club.  This will only
be kept track of for elected clubs.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club<br />
account - the name of the account<br />
<br />
<dd><b>Returns:</b>
<br />the array of transactions<br /><br />
<dd><b>See also:</b>
<br /><a href="#add_money">add_money()</a> and <a href="#remove_money">remove_money()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="query_valid_positions">
query_valid_positions</a><pre class="autodocfuncdef">
string * query_valid_positions(string club_name)
</pre><dd><br />
This method returns the list of available positions for the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
<br />
<dd><b>Returns:</b>
<br />the list of available positions
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="remove_account_allowed_person">
remove_account_allowed_person</a><pre class="autodocfuncdef">
int remove_account_allowed_person(string club_name,
                                  string account,
                                  string person)
</pre><dd><br />
This method removes a person from the allowed people array.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
person - the person to remove from the array<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_acount_allowed_person">add_acount_allowed_person()</a> and <a href="#query_account_allowed_person">query_account_allowed_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_account_allowed_position">
remove_account_allowed_position</a><pre class="autodocfuncdef">
int remove_account_allowed_position(string club_name,
                                    string account,
                                    string position)
</pre><dd><br />
This method removes a position from the allowed positions array.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
account - the name of the account<br />
position - the position to remove from the array<br />
<br />
<dd><b>See also:</b>
<br /><a href="#add_acount_allowed_position">add_acount_allowed_position()</a> and <a href="#query_account_allowed_position">query_account_allowed_position()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_club_board">
remove_club_board</a><pre class="autodocfuncdef">
int remove_club_board(string club_name)
</pre><dd><br />
This method removes the club's board.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to remove the board from<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="remove_elected_option">
remove_elected_option</a><pre class="autodocfuncdef">
int remove_elected_option(string club_name,
                          string option)
</pre><dd><br />
This method removes an option in the club.  Options are use for things
like setting if the club has a board associated with it, or other
optional elements.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to remove the option in<br />
option - the name of the option to remove<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_elected_option">query_elected_option()</a> and <a href="#is_elected_option">is_elected_option()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_money">
remove_money</a><pre class="autodocfuncdef">
int remove_money(string name,
                 int amount,
                 int type,
                 string person,
                 string account,
                 string information)
</pre><dd><br />
This method removes money from the account.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club<br />
amount - the amount to change the balance by<br />
type - the type of transaction<br />
person - the person doing the transaction<br />
account - the account being changed<br />
information - the information about the deposit<br />
<br />
<dd><b>Returns:</b>
<br />1 if the removal is a success<br /><br />
<dd><b>See also:</b>
<br /><a href="#pay_money">pay_money()</a>, <a href="#query_balance">query_balance()</a> and <a href="#query_transactions">query_transactions()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="remove_position_in_club">
remove_position_in_club</a><pre class="autodocfuncdef">
int remove_position_in_club(string name,
                            string position)
</pre><dd><br />
This method removes a position from a club.  The 4 basic positions cannot
be removed.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to remove the position from<br />
position - the position to remove<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#create_position_in_club">create_position_in_club()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_announcement">
set_announcement</a><pre class="autodocfuncdef">
int set_announcement(string club_name,
                     string announce)
</pre><dd><br />
This sets the current announcement.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
announce - the new announcement<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="set_elected_option">
set_elected_option</a><pre class="autodocfuncdef">
int set_elected_option(string club_name,
                       string option,
                       mixed value)
</pre><dd><br />
This method sets an option in the club.  Options are use for things
like setting if the club has a board associated with it, or other
optional elements.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to set the option in<br />
option - the name of the option to set<br />
value - the new value of the option<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#query_elected_option">query_elected_option()</a> and <a href="#is_elected_option">is_elected_option()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="set_position_holder">
set_position_holder</a><pre class="autodocfuncdef">
int set_position_holder(string club_name,
                        string position,
                        string person)
</pre><dd><br />
This method sets the specified person as the holder of the position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to set the position in<br />
position - the name of the position<br />
person - the person who will hold it<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="start_election">
start_election</a><pre class="autodocfuncdef">
int start_election(string club_name)
</pre><dd><br />
This method starts an election for the specified club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to start an election for<br />
<br />
<dd><b>Returns:</b>
<br />1 if the election is successful started<br /><br />
<dd><b>See also:</b>
<br /><a href="#nominate_person">nominate_person()</a>, <a href="#finish_nominations">finish_nominations()</a> and <a href="#vote_for_person">vote_for_person()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="vote_for_person">
vote_for_person</a><pre class="autodocfuncdef">
int vote_for_person(string club_name,
                    string position,
                    string person,
                    string voter)
</pre><dd><br />
This method sets up a vote for a specific person for a position.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to make the vote in<br />
position - the position you are voting for<br />
person - the person to vote for<br />
voter - the person doing the voting<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure<br /><br />
<dd><b>See also:</b>
<br /><a href="#start_election">start_election()</a>, <a href="#finish_nomination">finish_nomination()</a> and <a href="#nominate_person">nominate_person()
</a><br /><br /><br /></dl>

</dl>
<h2>Protected Functions</h2>
These are functions that only objects inheriting the class can access.<p>
<dl>
<dt class="autodocfuncname"><a name="add_archive">
add_archive</a><pre class="autodocfuncdef">
int add_archive(string club_name,
                string subject,
                string thingy)
</pre><dd><br />
This method adds to the archives of things for the current club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club<br />
thingy - the thing to archive<br />
<br />
<dd><b>Returns:</b>
<br />1 on success, 0 on failure
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="check_elected_information">
check_elected_information</a><pre class="autodocfuncdef">
void check_elected_information(string name,
                               string member,
                               int startup)
</pre><dd><br />
This method checks the extra information for the club.  Please note
this does *not* save the information.  You need to do this yourself.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to check<br />
<br />
<dd><b>See also:</b>
<br /><a href="#check_clubs">check_clubs()
</a><br /><br /><br /></dl>

<dt class="autodocfuncname"><a name="do_mail_committee">
do_mail_committee</a><pre class="autodocfuncdef">
void do_mail_committee(string club_name,
                       string subject,
                       string body)
</pre><dd><br />
This method will mail a messsage to the committee.  Useful for
informing members of problems and things.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
club_name - the name of the club to mail<br />
subject - the subject to use<br />
body - the body of the message
<br />
<br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_account_info">
query_account_info</a><pre class="autodocfuncdef">
class account_info query_account_info(string name,
                                      string account)
</pre><dd><br />
This method returns the information about the specified account.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club<br />
account - the name of the account<br />
<br />
<dd><b>Returns:</b>
<br />the account info
<br /><br />
<br /></dl>

<dt class="autodocfuncname"><a name="query_elected_info">
query_elected_info</a><pre class="autodocfuncdef">
class election_info query_elected_info(string name)
</pre><dd><br />
This method returns the elected info associated with the club.<br />
<br /><dl>
<dd><b>Parameters:</b><br />
name - the name of the club to get the info for<br />
<br />
<dd><b>Returns:</b>
<br />the elected club class, 0 if no club or not elected type
<br /><br />
<br /></dl>

</dl>
<h2>Classes</h2>
These are nice data types for dealing with...  Data!<p>
<ul>
<li><a name="class_account_info">
account_info</a><pre>
class account_info {
                     class club_transaction * transactions;
                     string * allowed_people;
                     string * allowed_positions;
}

</pre><br/>
This class keeps track of the accounts, it has the transaction
info for the account and other stuff.<p>
<dl>
<dt><b>Members:</b>
<br />transactions - the transactions for the account<br />
<br />allowed_people - the people that can use the account<br />
<br />allowed_positions - the positions that can use the account
<br />
</dl>

<li><a name="class_election_data">
election_data</a><pre>
class election_data {
                      int time_of_event;
                      int state;
                      mapping people;
                      mapping nominated;
                      mapping voted_for;
                      string election_status;
}

</pre><br/>
This class which keeps track of a currently running election.<p>
<dl>
<dt><b>Members:</b>
<br />time_of_event - the time the election started<br />
<br />state - the current state of the election<br />
<br />people - the current votes for the specified person.<br>
The format is: ([ position : ([ person : votes, ... ]) ... ])<br />
<br />voted_for - which positions everyone has voted for.<br>
The format is: ([ person : ({ position, position, ... }) ])<br />
<br />nominated - the people who have been nominated for each position
and who nominated them.<br>
This is in the format: ([ position: ([ person : ({ nominations }) ]) ])
A person must be seconded before they are actually added as
a potential for a position.<br />
<br />election_status - the status of the election, this is used with
defines.
<br />
</dl>

<li><a name="class_election_info">
election_info</a><pre>
class election_info {
                      string treasurer;
                      string president;
                      string vice_president;
                      string secretary;
                      mapping account_info;
                      mapping positions;
                      int last_election;
                      int election_period;
                      mapping options;
                      class discussion_idea * discussion;
                      class club_archive * archives;
                      string announcement;
                      int announce_time;
}

</pre><br/>
This is for an elected club, elected clubs ellect their officals and
stuff.  The treasurer etc are actually the indexes to be used into the
positions mapping to determine the actual member which holds the
position.<p>
<dl>
<dt><b>Members:</b>
<br />treasurer - the name of the treasurer of the club's position<br />
<br />president - the name of the president of the club's position<br />
<br />vice_president - the name of the vice president of the club's position<br />
<br />secretary - the name of the secretary of the club's position<br />
<br />account_info - information about the accounts<br />
<br />positions - the special extra positions available in the club<br />
<br />last_election - when the last election was held<br />
<br />discussion - the current items up for discussion
<br />
</dl>

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

