[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/pqf_handler.c
The Pratchett quote file handler.  Ever need a pratchett quote in your
text for whatever reason?  Here is your chance!
Method index
Public Functions
These are functions that everyone can access.
- 
do_read_file
void do_read_file()
 
Reads in the quote file source and splits it up into the various
files for use by the handler.
- 
query_quote_num
string * query_quote_num(int num)
 
This returns the quote as an array.  Each element of the array is a
string to go on a seperate line.
The last element of the array is the source of the quote.
- Parameters:
num - the quote number to read
- Returns:
the array of strings being the quote
  
- 
query_random_quote
string * query_random_quote()
 
This returns a random quote.  Each element of the array is a
string to go on a seperate line.
The last element of the array is the source of the quote.
It gets a random one from the current set.
- Returns:
the array of string sbeing the quote
- See also:
query_quote_num()