mirror of
https://github.com/opensim/opensim.git
synced 2026-07-16 04:25:42 +08:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user