diff options
Diffstat (limited to 'OpenSim/Framework/Communications/LoginService.cs')
-rw-r--r-- | OpenSim/Framework/Communications/LoginService.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/LoginService.cs b/OpenSim/Framework/Communications/LoginService.cs index 2ac34b1..afc6c9a 100644 --- a/OpenSim/Framework/Communications/LoginService.cs +++ b/OpenSim/Framework/Communications/LoginService.cs | |||
@@ -168,6 +168,7 @@ namespace OpenSim.Framework.UserManagement | |||
168 | //logResponse.SimAddress = "127.0.0.1"; //overwritten | 168 | //logResponse.SimAddress = "127.0.0.1"; //overwritten |
169 | //logResponse.SimPort = 0; //overwritten | 169 | //logResponse.SimPort = 0; //overwritten |
170 | logResponse.Message = GetMessage(); | 170 | logResponse.Message = GetMessage(); |
171 | logResponse.BuddList = ConvertFriendListItem(m_userManager.GetUserFriendList(agentID)); | ||
171 | 172 | ||
172 | try | 173 | try |
173 | { | 174 | { |
@@ -265,6 +266,20 @@ namespace OpenSim.Framework.UserManagement | |||
265 | return m_welcomeMessage; | 266 | return m_welcomeMessage; |
266 | } | 267 | } |
267 | 268 | ||
269 | private LoginResponse.BuddyList ConvertFriendListItem(List<FriendListItem> LFL) | ||
270 | { | ||
271 | LoginResponse.BuddyList buddylistreturn = new LoginResponse.BuddyList(); | ||
272 | foreach (FriendListItem fl in LFL) | ||
273 | { | ||
274 | LoginResponse.BuddyList.BuddyInfo buddyitem = new LoginResponse.BuddyList.BuddyInfo(fl.Friend); | ||
275 | buddyitem.BuddyID = fl.Friend; | ||
276 | buddyitem.BuddyRightsHave = (int)fl.FriendListOwnerPerms; | ||
277 | buddyitem.BuddyRightsGiven = (int) fl.FriendPerms; | ||
278 | buddylistreturn.AddNewBuddy(buddyitem); | ||
279 | |||
280 | } | ||
281 | return buddylistreturn; | ||
282 | } | ||
268 | /// <summary> | 283 | /// <summary> |
269 | /// Converts the inventory library skeleton into the form required by the rpc request. | 284 | /// Converts the inventory library skeleton into the form required by the rpc request. |
270 | /// </summary> | 285 | /// </summary> |