aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
diff options
context:
space:
mode:
authorDiva Canto2011-05-23 19:45:39 -0700
committerDiva Canto2011-05-23 19:45:39 -0700
commit24f28d353427d1905ae1a46408841265379e29c3 (patch)
tree07234a5837632bbe0d1198bf282d023c9cd1fb43 /OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
parentMore on HG Friends. Added Delete(string, string) across the board. Added secu... (diff)
downloadopensim-SC_OLD-24f28d353427d1905ae1a46408841265379e29c3.zip
opensim-SC_OLD-24f28d353427d1905ae1a46408841265379e29c3.tar.gz
opensim-SC_OLD-24f28d353427d1905ae1a46408841265379e29c3.tar.bz2
opensim-SC_OLD-24f28d353427d1905ae1a46408841265379e29c3.tar.xz
HG friends: Status notifications working. Also initial logins get the online friends in other grids.
Diffstat (limited to 'OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs')
-rw-r--r--OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
index a83d0e8..841811e 100644
--- a/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
+++ b/OpenSim/Server/Handlers/Hypergrid/HGFriendsServerPostHandler.cs
@@ -140,16 +140,20 @@ namespace OpenSim.Server.Handlers.Hypergrid
140 140
141 byte[] NewFriendship(Dictionary<string, object> request) 141 byte[] NewFriendship(Dictionary<string, object> request)
142 { 142 {
143 m_log.DebugFormat("[XXX] 1");
143 if (!VerifyServiceKey(request)) 144 if (!VerifyServiceKey(request))
144 return FailureResult(); 145 return FailureResult();
145 146
147 m_log.DebugFormat("[XXX] 2");
146 // OK, can proceed 148 // OK, can proceed
147 FriendInfo friend = new FriendInfo(request); 149 FriendInfo friend = new FriendInfo(request);
148 UUID friendID; 150 UUID friendID;
149 string tmp = string.Empty; 151 string tmp = string.Empty;
152 m_log.DebugFormat("[XXX] 3");
150 if (!Util.ParseUniversalUserIdentifier(friend.Friend, out friendID, out tmp, out tmp, out tmp, out tmp)) 153 if (!Util.ParseUniversalUserIdentifier(friend.Friend, out friendID, out tmp, out tmp, out tmp, out tmp))
151 return FailureResult(); 154 return FailureResult();
152 155
156
153 m_log.DebugFormat("[HGFRIENDS HANDLER]: New friendship {0} {1}", friend.PrincipalID, friend.Friend); 157 m_log.DebugFormat("[HGFRIENDS HANDLER]: New friendship {0} {1}", friend.PrincipalID, friend.Friend);
154 158
155 // If the friendship already exists, return fail 159 // If the friendship already exists, return fail