mirror of
https://github.com/kcozens/OpenSimProfile.git
synced 2026-08-14 09:02:00 +00:00
OpenSimProfile/Modules/ProfileModule/OpenProfile.cs:
- Check if notes hash is null when notes data was requested by viewer. This fixes the notes profile tab in viewer. git-svn-id: http://forge.opensimulator.org/svn/osprofile/trunk@72 19860011-0018-435d-96ae-4a7b0aaa3128
This commit is contained in:
@@ -454,6 +454,8 @@ namespace OpenSimProfile.Modules.OpenProfile
|
||||
|
||||
public void HandleAvatarNotesRequest(Object sender, string method, List<String> args)
|
||||
{
|
||||
string notes = "";
|
||||
|
||||
if (!(sender is IClientAPI))
|
||||
return;
|
||||
|
||||
@@ -480,16 +482,13 @@ namespace OpenSimProfile.Modules.OpenProfile
|
||||
{
|
||||
Hashtable d = (Hashtable)dataArray[0];
|
||||
|
||||
remoteClient.SendAvatarNotesReply(
|
||||
new UUID(d["targetid"].ToString()),
|
||||
d["notes"].ToString());
|
||||
}
|
||||
else
|
||||
{
|
||||
remoteClient.SendAvatarNotesReply(
|
||||
new UUID(ReqHash["uuid"].ToString()),
|
||||
"");
|
||||
if (d["notes"] != null)
|
||||
notes = d["notes"].ToString();
|
||||
}
|
||||
|
||||
remoteClient.SendAvatarNotesReply(
|
||||
new UUID(ReqHash["uuid"].ToString()),
|
||||
notes);
|
||||
}
|
||||
|
||||
// Notes Update
|
||||
|
||||
Reference in New Issue
Block a user