LSL compatibility: Don't throw an exception if an invalid key is passed to llInstantMessage, instead shout about it and apply the usual delay. This now matches SL.

avinationmerge
meta7 2010-09-13 17:43:45 -07:00
parent 656e64b3ed
commit ec305a4825
1 changed files with 2 additions and 4 deletions

View File

@ -3249,10 +3249,8 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
UUID result; UUID result;
if (!UUID.TryParse(user, out result)) if (!UUID.TryParse(user, out result))
{ {
if (!m_debuggerSafe) ShoutError("An invalid key was passed to llInstantMessage");
{ ScriptSleep(2000);
throw new Exception(String.Format("An invalid key of '{0} was passed to llInstantMessage", user));
}
return; return;
} }