I notice that both ejabberd and M-Link have a room configuration option
to allow or disallow sending of private messages.

In ejabberd, the setting is global:

<field type="boolean" label="Allow users to send private messages"
var="allow_private_messages" >
<value>1</value>
</field>

In M-Link, the setting is based on role:

<field type="list-single" label="Private messages sent by"
var="x-isode#roomconfig_privmsg" >
<value>anyone</value>
<option label="Anyone" >
<value>anyone</value>
</option>
<option label="Anyone with voice" >
<value>participants</value>
</option>
<option label="Moderators Only" >
<value>moderators</value>
</option>
<option label="Nobody" >
<value>none</value>
</option>
</field>

In the next version of XEP-0045 I'd like to standardize such a feature.
I have a preference for the approach taken by M-Link, since it would
allow PMs to moderators or participants even if visitors aren't allowed
to send PMs.

Peter

-- 
Peter Saint-Andre
https://stpeter.im/


Reply via email to