aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/LoginService.cs
diff options
context:
space:
mode:
authorTeravus Ovares2007-12-31 22:56:43 +0000
committerTeravus Ovares2007-12-31 22:56:43 +0000
commit3180432debcd9078e8e838d4bbe3ddaf9cdfe110 (patch)
treeb838c1b5b6f3bb7b2baf5c013b1e74a44caa909f /OpenSim/Framework/Communications/LoginService.cs
parentMove unused inventory files into the attic (diff)
downloadopensim-SC_OLD-3180432debcd9078e8e838d4bbe3ddaf9cdfe110.zip
opensim-SC_OLD-3180432debcd9078e8e838d4bbe3ddaf9cdfe110.tar.gz
opensim-SC_OLD-3180432debcd9078e8e838d4bbe3ddaf9cdfe110.tar.bz2
opensim-SC_OLD-3180432debcd9078e8e838d4bbe3ddaf9cdfe110.tar.xz
* Added database and UserManagerBase glue for FriendsList management
* Don't forget to run prebuild
Diffstat (limited to 'OpenSim/Framework/Communications/LoginService.cs')
-rw-r--r--OpenSim/Framework/Communications/LoginService.cs15
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>