-- chat_history - Channel-based history for Chat System -- (component of Chat System) -- Template attachment: chat_system -- Created by: Patrick Ferland -- Created on: 05/27/2008 -- Revision History -- 05/27/2008 P.Ferland - New script -- 05/30/2008 P.Ferland - Initial release -- 06/02/2008 P.Ferland - Cleanup and documentation -- 06/20/2008 J.McNab - Improved history formatting for web -- Constants -- no constants -- Script properties Define Properties() IncludeScript('11302:12') -- chat_utility end -- Commands -- no commands -- Triggers -- Web Triggers -- View chat channel history WebTrigger chathistory(query_string) local password = query_string.pw local entity_type = query_string.et local entity = query_string.en if (entity_type == nil) then entity_type = 'world' end if (entity == nil) then entity = '' end local channel = chat_system_channel_name(entity_type, entity) local cs = self.chat_system local w = GetWorld() WebResponse(200) WebHeader('Content-type: text/html') WebWrite("
\r\n") WebWrite("Access denied
") end else WebWrite("