From 61e2254be21b80b5b3934aa5a6e401b858b7fd8e Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 3 Jun 2008 07:12:09 +0000 Subject: * This should fix presence issues. --- .../Region/Environment/Modules/Avatar/Friends/FriendsModule.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Friends') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs index 92c808b..0762291 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Friends/FriendsModule.cs @@ -93,8 +93,9 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends public XmlRpcResponse processPresenceUpdate(XmlRpcRequest req) { - m_log.Info("[FRIENDS]: Got Notification about a user! OMG"); + //m_log.Info("[FRIENDS]: Got Notification about a user! OMG"); Hashtable requestData = (Hashtable)req.Params[0]; + if (requestData.ContainsKey("agent_id") && requestData.ContainsKey("notify_id") && requestData.ContainsKey("status")) { LLUUID notifyAgentId = LLUUID.Zero; @@ -107,7 +108,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends Helpers.TryParse((string)requestData["notify_id"], out notifyAgentId); Helpers.TryParse((string)requestData["agent_id"], out notifyAboutAgentId); - + m_log.InfoFormat("[PRESENCE]: Got presence update for {0}, and we're telling {1}, with a status {2}", notifyAboutAgentId.ToString(), notifyAgentId.ToString(), notifyOnlineStatus.ToString()); ScenePresence avatar = GetPresenceFromAgentID(notifyAgentId); if (avatar != null) { @@ -161,6 +162,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Friends } } + else + { + m_log.Warn("[PRESENCE]: Malformed XMLRPC Presence request"); + } return new XmlRpcResponse(); } -- cgit v1.1