From 37d42890e78a43c2e79c7cfb2a2c9c690f56613c Mon Sep 17 00:00:00 2001 From: Dahlia Trimble Date: Sat, 11 Oct 2008 02:56:03 +0000 Subject: Thanks cmickyb for a patch that enhances the IRC module. See mantis #2379 for some useful scripts that work with this. Note that I added another configuration parameter in addition to the patch to allow for legacy behavior in the absence of new configuration settings. --- .../Modules/Scripting/WorldComm/WorldCommModule.cs | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Scripting') diff --git a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs index f5ec389..f8e933d 100644 --- a/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs +++ b/OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs @@ -222,10 +222,25 @@ namespace OpenSim.Region.Environment.Modules.Scripting.WorldComm else { avatar = m_scene.GetScenePresence(id); if (avatar != null) + { position = avatar.AbsolutePosition; + } else - // bail out early, given source could not be found - return; + { + // This is potentially problematic, though I don't + // see how to take advantage of it, basically a request + // to send a message to the region does not have to come + // from something in the region (eg a plugin can send it) + if (type == ChatTypeEnum.Region) + { + position = new Vector3(128, 128, 20); + } + else + { + // bail out early, given source could not be found + return; + } + } } // Determine which listen event filters match the given set of arguments, this results -- cgit v1.1