Implement god summons
parent
4765fd9cd0
commit
0f1fc79994
|
@ -150,11 +150,24 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
|
||||||
|
|
||||||
m_log.DebugFormat("TP invite with message {0}", message);
|
m_log.DebugFormat("TP invite with message {0}", message);
|
||||||
|
|
||||||
GridInstantMessage m = new GridInstantMessage(scene, client.AgentId,
|
GridInstantMessage m;
|
||||||
client.FirstName+" "+client.LastName, targetid,
|
|
||||||
(byte)InstantMessageDialog.RequestTeleport, false,
|
if (scene.Permissions.IsAdministrator(client.AgentId) && presence.GodLevel >= 200 && (scene.Permissions.IsAdministrator(targetid)))
|
||||||
message, dest, false, presence.AbsolutePosition,
|
{
|
||||||
new Byte[0]);
|
m = new GridInstantMessage(scene, client.AgentId,
|
||||||
|
client.FirstName+" "+client.LastName, targetid,
|
||||||
|
(byte)InstantMessageDialog.GodLikeRequestTeleport, false,
|
||||||
|
message, dest, false, presence.AbsolutePosition,
|
||||||
|
new Byte[0]);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m = new GridInstantMessage(scene, client.AgentId,
|
||||||
|
client.FirstName+" "+client.LastName, targetid,
|
||||||
|
(byte)InstantMessageDialog.RequestTeleport, false,
|
||||||
|
message, dest, false, presence.AbsolutePosition,
|
||||||
|
new Byte[0]);
|
||||||
|
}
|
||||||
|
|
||||||
if (m_TransferModule != null)
|
if (m_TransferModule != null)
|
||||||
{
|
{
|
||||||
|
@ -190,7 +203,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Lure
|
||||||
{
|
{
|
||||||
// Forward remote teleport requests
|
// Forward remote teleport requests
|
||||||
//
|
//
|
||||||
if (msg.dialog != 22)
|
if (msg.dialog != (byte)InstantMessageDialog.RequestTeleport &&
|
||||||
|
msg.dialog != (byte)InstantMessageDialog.GodLikeRequestTeleport)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_TransferModule != null)
|
if (m_TransferModule != null)
|
||||||
|
|
Loading…
Reference in New Issue