Commit ed01e1ce authored by dwd's avatar dwd

Merge pull request #41 from sco0ter/of805

OF-805 [MUC] OF does not return all affiliated users when requesting mul...
parents fc04a98c 299f727c
...@@ -134,13 +134,15 @@ public class IQAdminHandler { ...@@ -134,13 +134,15 @@ public class IQAdminHandler {
// Check if the client is requesting or changing the list of moderators/members/etc. // Check if the client is requesting or changing the list of moderators/members/etc.
if (!hasJID && !hasNick) { if (!hasJID && !hasNick) {
// The client is requesting the list of moderators/members/participants/outcasts // The client is requesting the list of moderators/members/participants/outcasts
// Create the result that will hold an item for each
// moderator/member/participant/outcast
Element result = reply.setChildElement("query", "http://jabber.org/protocol/muc#admin");
for (Object anItem : itemsList) { for (Object anItem : itemsList) {
item = (Element) anItem; item = (Element) anItem;
affiliation = item.attributeValue("affiliation"); affiliation = item.attributeValue("affiliation");
roleAttribute = item.attributeValue("role"); roleAttribute = item.attributeValue("role");
// Create the result that will hold an item for each
// moderator/member/participant/outcast
Element result = reply.setChildElement("query", "http://jabber.org/protocol/muc#admin");
Element metaData; Element metaData;
if ("outcast".equals(affiliation)) { if ("outcast".equals(affiliation)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment