history
index
/Users/hollis/Desktop/nakedmud/lib/pymodules/history.py

history.py
 
a little database module for storing communication histories. Can store by
arbitrary groupings e.g., for guild, global, zone, or personal communications.

 
Modules
       
mudsys

 
Functions
       
add_history(ch, type, mssg)
cmd_history(ch, cmd, arg)
Communication logs are stored as you receive communication. To review
communication you have used, you can use the history command.
get_history(ch, type)
return the communication history for a character.
register_comm_history(type, group_func)
register a new type of history, and add a grouping function as well.

 
Data
        MAX_HISTORY_LEN = 20
comm_table = {'chat': (<function <lambda> at 0x7bfdb0>, {}), 'tell': (<function <lambda> at 0x7bfdf0>, {})}