diff options
author | UbitUmarov | 2019-10-13 16:41:38 +0100 |
---|---|---|
committer | UbitUmarov | 2019-10-13 16:41:38 +0100 |
commit | 0273baaef67824da5cb2cc2de2593a8800ce3cb6 (patch) | |
tree | aa277a5c21c823a5e88e423748613a9536cee13f /OpenSim/Addons/Groups | |
parent | add osResetAllScripts(LSL_Integer AllLinkset). use with care (diff) | |
download | opensim-SC-0273baaef67824da5cb2cc2de2593a8800ce3cb6.zip opensim-SC-0273baaef67824da5cb2cc2de2593a8800ce3cb6.tar.gz opensim-SC-0273baaef67824da5cb2cc2de2593a8800ce3cb6.tar.bz2 opensim-SC-0273baaef67824da5cb2cc2de2593a8800ce3cb6.tar.xz |
mantis 8598: filter dead groups from group search. honor querystart request. Viewers are very broken on this, seems protocol was made by someone with no idea about lludp
Diffstat (limited to 'OpenSim/Addons/Groups')
-rw-r--r-- | OpenSim/Addons/Groups/Service/GroupsService.cs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/OpenSim/Addons/Groups/Service/GroupsService.cs b/OpenSim/Addons/Groups/Service/GroupsService.cs index 0792a47..b5f8ff5 100644 --- a/OpenSim/Addons/Groups/Service/GroupsService.cs +++ b/OpenSim/Addons/Groups/Service/GroupsService.cs | |||
@@ -230,15 +230,22 @@ namespace OpenSim.Groups | |||
230 | if (d.Data.ContainsKey("Location") && d.Data["Location"] != string.Empty) | 230 | if (d.Data.ContainsKey("Location") && d.Data["Location"] != string.Empty) |
231 | continue; | 231 | continue; |
232 | 232 | ||
233 | int nmembers = m_Database.MemberCount(d.GroupID); | ||
234 | if(nmembers == 0) | ||
235 | continue; | ||
236 | |||
233 | DirGroupsReplyData g = new DirGroupsReplyData(); | 237 | DirGroupsReplyData g = new DirGroupsReplyData(); |
234 | g.groupID = d.GroupID; | ||
235 | 238 | ||
236 | if (d.Data.ContainsKey("Name")) | 239 | if (d.Data.ContainsKey("Name")) |
237 | g.groupName = d.Data["Name"]; | 240 | g.groupName = d.Data["Name"]; |
238 | else | 241 | else |
242 | { | ||
239 | m_log.DebugFormat("[Groups]: Key Name not found"); | 243 | m_log.DebugFormat("[Groups]: Key Name not found"); |
244 | continue; | ||
245 | } | ||
240 | 246 | ||
241 | g.members = m_Database.MemberCount(d.GroupID); | 247 | g.groupID = d.GroupID; |
248 | g.members = nmembers; | ||
242 | 249 | ||
243 | groups.Add(g); | 250 | groups.Add(g); |
244 | } | 251 | } |