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:
Dahlia Trimble
2008-10-11 02:56:03 +00:00
parent d633cadb5f
commit 37d42890e7
3 changed files with 128 additions and 29 deletions

View File

@@ -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