On Friday 15 October 2010 00:54:30 Dave Cridland wrote:
> I'd be inclined to stick with this pattern, too - add domain-level
> affiliations in a more general way, include them in protocol (we
> currently use a magic room in MUC), and not try to expose them (very
> much) in the affiliation lists of the node/rooms.

Okay, so setting affiliations with scopes.  Maybe to handle domain scope you'd 
just do the same admin protocol exchanges against the MUC domain JID instead 
of a room JID?

For example, here could be adding [email protected] as a domain-wide admin:

<iq type="set" to="conference.example.com" id="1">
  <query xmlns="http://jabber.org/protocol/muc#admin";>
    <item affiliation="admin" jid="[email protected]"/>
  </query>
</iq>

I agree that in general it would be confusing to differentiate admins of 
different scopes in a client UI, but we have this need, so I'd like for it to 
be possible.  What about this:

<presence from="[email protected]/user_nick">
  <x xmlns="http://jabber.org/protocol/muc#user";>
    <item affiliation="admin" scope="domain" role="moderator"/>
  </x>
</presence>

-Justin

Reply via email to