From the NannyMUD documentation

LAST CHANGE

2000-12-19

FUNCTION


NAME

        colourize_string - Add colour codes to a string.

SYNTAX

        string colourize_string(string msg, object player, string class)

DESCRIPTION

	This function adds colour codes to the string, based on the settings
	in the object 'player'.

NOTE

	If the string ends in newline(s), the code for 'end-of-colour' is
	added before those to stop the colour from bleeding down into the
	prompt.