[Package Index | Mudlib Index | Effect Index]

File /obj/handlers/hist_handler.c

The channel history handler. by Turrican@Discworld. Based on the tell history.

Started 23-3-1995

Method index

Public Functions

These are functions that everyone can access.

add_chat_history
void add_chat_history(string channel,
                      string start,
                      string mess)

Keep a mesage from a specified line on the chat stick.

Parameters:
channel - the channel being stored
start - the start string (name)
mess - the message being stored


add_cre_history
void add_cre_history(string start,
                     string mess)

Add the history of the creator channel.

Parameters:
start - the start bit, emote or not
mess - the message they said


add_lord_history
void add_lord_history(string start,
                      string mess)

Adds a amessage into the lord channel history.

Parameters:
start - the start staring
mess - what they actually said


query_chat_history
mixed * query_chat_history(string channel)

Returns the current chat channel history. The array contains arrays of three elemnts each., In each array the first element is the start, the second the mssage and thwe third the time.

({ .. ({ start, mess, time }), ({ start, mess, time }), .. })

Parameters:
channel - the channel to get the history of

Returns:
an array of the chat channel history.


query_cre_history
mixed * query_cre_history()

Returns the current creator history. The array contains arrays of three elemnts each., In each array the first element is the start, the second the mssage and thwe third the time.

({ .. ({ start, mess, time }), ({ start, mess, time }), .. })

Returns:
an array of the creator history.


query_lord_history
mixed * query_lord_history()

Returns the current lord history. The array contains arrays of three elemnts each., In each array the first element is the start, the second the mssage and thwe third the time.

({ .. ({ start, mess, time }), ({ start, mess, time }), .. })

Returns:
an array of the lord history.


save_me
void save_me()

Save the current state.