diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Scripting')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Scripting/WorldComm/WorldCommModule.cs | 19 |
1 files changed, 17 insertions, 2 deletions
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 | |||
222 | else { | 222 | else { |
223 | avatar = m_scene.GetScenePresence(id); | 223 | avatar = m_scene.GetScenePresence(id); |
224 | if (avatar != null) | 224 | if (avatar != null) |
225 | { | ||
225 | position = avatar.AbsolutePosition; | 226 | position = avatar.AbsolutePosition; |
227 | } | ||
226 | else | 228 | else |
227 | // bail out early, given source could not be found | 229 | { |
228 | return; | 230 | // This is potentially problematic, though I don't |
231 | // see how to take advantage of it, basically a request | ||
232 | // to send a message to the region does not have to come | ||
233 | // from something in the region (eg a plugin can send it) | ||
234 | if (type == ChatTypeEnum.Region) | ||
235 | { | ||
236 | position = new Vector3(128, 128, 20); | ||
237 | } | ||
238 | else | ||
239 | { | ||
240 | // bail out early, given source could not be found | ||
241 | return; | ||
242 | } | ||
243 | } | ||
229 | } | 244 | } |
230 | 245 | ||
231 | // Determine which listen event filters match the given set of arguments, this results | 246 | // Determine which listen event filters match the given set of arguments, this results |