mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 16:22:50 +08:00
More cleaning on presence. Friends online/offline works again.
This commit is contained in:
@@ -133,20 +133,14 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
|
||||
foreach (PresenceInfo pi in status)
|
||||
{
|
||||
UUID uuid = new UUID(pi.UserID);
|
||||
if (pi.Online)
|
||||
{
|
||||
if (!online.Contains(uuid))
|
||||
{
|
||||
online.Add(uuid);
|
||||
if (offline.Contains(uuid))
|
||||
offline.Remove(uuid);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!online.Contains(uuid) && !offline.Contains(uuid))
|
||||
offline.Add(uuid);
|
||||
}
|
||||
if (!online.Contains(uuid))
|
||||
online.Add(uuid);
|
||||
}
|
||||
foreach (string s in args)
|
||||
{
|
||||
UUID uuid = new UUID(s);
|
||||
if (!online.Contains(uuid) && !offline.Contains(uuid))
|
||||
offline.Add(uuid);
|
||||
}
|
||||
|
||||
if (online.Count > 0)
|
||||
|
||||
Reference in New Issue
Block a user