aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/InterGrid
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Environment/Modules/InterGrid')
-rw-r--r--OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs20
1 files changed, 16 insertions, 4 deletions
diff --git a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
index 41aec8f..478fbb7 100644
--- a/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
+++ b/OpenSim/Region/Environment/Modules/InterGrid/OpenGridProtocolModule.cs
@@ -268,6 +268,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
268 return RequestRezAvatarMethod(path, request); 268 return RequestRezAvatarMethod(path, request);
269 case "rez_avatar/place": 269 case "rez_avatar/place":
270 return RequestRezAvatarMethod(path, request); 270 return RequestRezAvatarMethod(path, request);
271 case "rez_avatar/derez":
272 return DerezAvatarMethod(path, request);
271 //break; 273 //break;
272 default: 274 default:
273 return GenerateNoHandlerMessage(); 275 return GenerateNoHandlerMessage();
@@ -365,7 +367,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
365 367
366 public LLSD RequestRezAvatarMethod(string path, LLSD request) 368 public LLSD RequestRezAvatarMethod(string path, LLSD request)
367 { 369 {
368 m_log.WarnFormat("[REQUESTREZAVATAR]: {0}", request.ToString()); 370 //System.Console.WriteLine("[REQUESTREZAVATAR]: " + request.ToString());
369 371
370 LLSDMap requestMap = (LLSDMap)request; 372 LLSDMap requestMap = (LLSDMap)request;
371 373
@@ -564,6 +566,8 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
564 { 566 {
565 if (CapsLoginID.ContainsKey(rezAvatarPath)) 567 if (CapsLoginID.ContainsKey(rezAvatarPath))
566 { 568 {
569 CapsLoginID[rezAvatarPath] = agentData;
570
567 // This is a joke, if you didn't notice... It's so unlikely to happen, that I'll print this message if it does occur! 571 // This is a joke, if you didn't notice... It's so unlikely to happen, that I'll print this message if it does occur!
568 m_log.Error("[OGP]: Holy anomoly batman! Caps path already existed! All the UUID Duplication worries were founded!"); 572 m_log.Error("[OGP]: Holy anomoly batman! Caps path already existed! All the UUID Duplication worries were founded!");
569 } 573 }
@@ -572,7 +576,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
572 CapsLoginID.Add(rezAvatarPath, agentData); 576 CapsLoginID.Add(rezAvatarPath, agentData);
573 } 577 }
574 } 578 }
575 579 //System.Console.WriteLine("Response:" + responseMap.ToString());
576 return responseMap; 580 return responseMap;
577 } 581 }
578 582
@@ -852,7 +856,7 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
852 } 856 }
853 else 857 else
854 { 858 {
855 return GenerateNoHandlerMessage(); 859 return GenerateNoStateMessage(LocalID);
856 } 860 }
857 } 861 }
858 else 862 else
@@ -992,7 +996,15 @@ namespace OpenSim.Region.Environment.Modules.InterGrid
992 map["connect"] = LLSD.FromString("false"); 996 map["connect"] = LLSD.FromString("false");
993 return map; 997 return map;
994 } 998 }
995 999 public LLSD GenerateNoStateMessage(UUID passedAvatar)
1000 {
1001 LLSDMap map = new LLSDMap();
1002 map["reason"] = LLSD.FromString("derez failed");
1003 map["message"] = LLSD.FromString("Unable to locate OGP state for avatar " + passedAvatar.ToString());
1004 map["login"] = LLSD.FromString("false");
1005 map["connect"] = LLSD.FromString("false");
1006 return map;
1007 }
996 private bool TryGetAgentCircuitData(string path, out AgentCircuitData userdata) 1008 private bool TryGetAgentCircuitData(string path, out AgentCircuitData userdata)
997 { 1009 {
998 userdata = null; 1010 userdata = null;