Catch zero UUIDs in LSL and shout as an error. Also catch attempts to send IM

to UUID.Zero because it ties up XMLRPC handlers needlessly.
This commit is contained in:
Melanie
2012-09-09 16:30:01 +02:00
parent d734c1985c
commit 0556bbefdd
2 changed files with 4 additions and 1 deletions

View File

@@ -3420,7 +3420,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public void llInstantMessage(string user, string message)
{
UUID result;
if (!UUID.TryParse(user, out result))
if (!UUID.TryParse(user, out result) || result == UUID.Zero)
{
ShoutError("An invalid key was passed to llInstantMessage");
ScriptSleep(2000);