On 22/08/2011 20:10, Alexander Holler wrote:
Beeing a long time IRC user, I've often seen that a concept of timed affiliation could be usefull for other reasons too.

I think timed affiliations could be useful. Having a way to ban someone for a defined time is a good feature, for example.

So here are my thoughts about that:

To implement that, a new attribute 'until' is introduced which contains an absolute time in the format of XEP-0082 using UTC as timezone.

E.g. to set a timed affiliation:

------------------------------------
<iq from='[email protected]/pda'
id='ban1'
to='[email protected]'
type='set'>
<query xmlns='http://jabber.org/protocol/muc#admin'>
<item nick='pistol' affiliation='outcast' until='2011-08-22T23:59:59Z'>
<reason>Avaunt, you cullion!</reason>
</item>
</query>
</iq>

In a list of affiliations the attribute 'until' should appear in 'items' too.

Seems fine for me.
Rules:

Every new affiliation setting changes the one before, may it be an timed affiliation or a standard affiliation.

If a timed affiliation reaches it's end of life, the affiliation changes as in the table below and the role (if the entity is currently an occupant) will be changed accordingly.

Room Type | Outcast | Member | Admin | Owner
------------------------------------------------------------------
Moderated | None | None | Member | Member
Unmoderated | None | None | None | None
Members-Only | None | None | Member | Member
Open | None | None | None | None

Wouldn’t it be better to just reset the affiliation to the previous one?
For example, with your proposal, if you ban a member for, say, 10 minutes, she will come back with no affiliation. That can be disturbing and I don’t see why that would be the prefered way. Reseting the affiliation to the one that was set before seems more logical and useful to me.

I don’t know if that could be integrated in XEP 0045 or as an separated XEP, but I think this is simple and short enough to be included in 0045.

--
Florent Le Coz

Reply via email to