aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs
diff options
context:
space:
mode:
authorMelanie2010-05-09 17:04:23 +0100
committerMelanie2010-05-09 17:04:23 +0100
commit4e0d62547d2760ce48cf64373917dcfb893da543 (patch)
tree9f84ddc57b58ed107cd6d610aaeb62039d483a71 /OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs
parentMerge branch 'careminster' into careminster-presence-refactor (diff)
parentAdd a field asset_flags and a corresponding enum to the asset database. This (diff)
downloadopensim-SC-4e0d62547d2760ce48cf64373917dcfb893da543.zip
opensim-SC-4e0d62547d2760ce48cf64373917dcfb893da543.tar.gz
opensim-SC-4e0d62547d2760ce48cf64373917dcfb893da543.tar.bz2
opensim-SC-4e0d62547d2760ce48cf64373917dcfb893da543.tar.xz
Merge branch 'master' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs')
-rw-r--r--OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs22
1 files changed, 8 insertions, 14 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs b/OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs
index bafad82..dd17f3c 100644
--- a/OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs
+++ b/OpenSim/Region/CoreModules/Avatar/InstantMessage/PresenceModule.cs
@@ -133,20 +133,14 @@ namespace OpenSim.Region.CoreModules.Avatar.InstantMessage
133 foreach (PresenceInfo pi in status) 133 foreach (PresenceInfo pi in status)
134 { 134 {
135 UUID uuid = new UUID(pi.UserID); 135 UUID uuid = new UUID(pi.UserID);
136 if (pi.Online) 136 if (!online.Contains(uuid))
137 { 137 online.Add(uuid);
138 if (!online.Contains(uuid)) 138 }
139 { 139 foreach (string s in args)
140 online.Add(uuid); 140 {
141 if (offline.Contains(uuid)) 141 UUID uuid = new UUID(s);
142 offline.Remove(uuid); 142 if (!online.Contains(uuid) && !offline.Contains(uuid))
143 } 143 offline.Add(uuid);
144 }
145 else
146 {
147 if (!online.Contains(uuid) && !offline.Contains(uuid))
148 offline.Add(uuid);
149 }
150 } 144 }
151 145
152 if (online.Count > 0) 146 if (online.Count > 0)