// Simple chat relay script // Ordinal Malaprop // 2006-03-14 // Inappropriate use of this script, for surveillance etc, // may get you into trouble. I take no responsibility for that. // See Linden Labs' ToS for more details. default { state_entry() { // Start up a listen for all chat on channel 0 llListen(0, "", NULL_KEY, ""); } listen(integer channel, string name, key id, string message) { // Don't relay the owner's own chat to them if (id != llGetOwner()) { // Send IM with the appropriate chat in it. // NB if the chat string is VERY long, this may get // truncated. That's unlikely though. llInstantMessage(llGetOwner(), name + ":" + message); } } }