diff options
author | Melanie | 2011-06-09 02:05:04 +0100 |
---|---|---|
committer | Melanie | 2011-06-09 02:05:04 +0100 |
commit | 326c46ba70cea70ddfe4aef9a6b73edff63e126a (patch) | |
tree | 5e76347b0d77f58717d8e5e4f3b8787ff01a18d7 /OpenSim/Services/LLLoginService/LLLoginResponse.cs | |
parent | Make the last otem in a list created with llCSV2List findable (diff) | |
parent | Consistency fix on the last commit. (diff) | |
download | opensim-SC-326c46ba70cea70ddfe4aef9a6b73edff63e126a.zip opensim-SC-326c46ba70cea70ddfe4aef9a6b73edff63e126a.tar.gz opensim-SC-326c46ba70cea70ddfe4aef9a6b73edff63e126a.tar.bz2 opensim-SC-326c46ba70cea70ddfe4aef9a6b73edff63e126a.tar.xz |
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/LLLoginService/LLLoginResponse.cs')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index f8868f5..82acfbc 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -627,7 +627,19 @@ namespace OpenSim.Services.LLLoginService | |||
627 | if (finfo.TheirFlags == -1) | 627 | if (finfo.TheirFlags == -1) |
628 | continue; | 628 | continue; |
629 | LLLoginResponse.BuddyList.BuddyInfo buddyitem = new LLLoginResponse.BuddyList.BuddyInfo(finfo.Friend); | 629 | LLLoginResponse.BuddyList.BuddyInfo buddyitem = new LLLoginResponse.BuddyList.BuddyInfo(finfo.Friend); |
630 | buddyitem.BuddyID = finfo.Friend; | 630 | // finfo.Friend may not be a simple uuid |
631 | UUID friendID = UUID.Zero; | ||
632 | if (UUID.TryParse(finfo.Friend, out friendID)) | ||
633 | buddyitem.BuddyID = finfo.Friend; | ||
634 | else | ||
635 | { | ||
636 | string tmp; | ||
637 | if (Util.ParseUniversalUserIdentifier(finfo.Friend, out friendID, out tmp, out tmp, out tmp, out tmp)) | ||
638 | buddyitem.BuddyID = friendID.ToString(); | ||
639 | else | ||
640 | // junk entry | ||
641 | continue; | ||
642 | } | ||
631 | buddyitem.BuddyRightsHave = (int)finfo.TheirFlags; | 643 | buddyitem.BuddyRightsHave = (int)finfo.TheirFlags; |
632 | buddyitem.BuddyRightsGiven = (int)finfo.MyFlags; | 644 | buddyitem.BuddyRightsGiven = (int)finfo.MyFlags; |
633 | buddylistreturn.AddNewBuddy(buddyitem); | 645 | buddylistreturn.AddNewBuddy(buddyitem); |