Prevent room creation
I work on a site that currently uses ejabberd but we are preparing to migrate to Tigase. Only thing remaining is to prevent users from being able to create MUC rooms.
We want to be in charge of room creation and in ejabberd we could deny them the right to create rooms. If they did, this would happen:
<presence xmlns="jabber:client" from="email@example.com/betatester01" to="firstname.lastname@example.org/22598024081400493159183011" type="error"> <error code="403" type="auth"> <forbidden xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/> <text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"> Room creation is denied by service policy </text> </error> </presence>
When a user got this in response to joining a room, he can ask a module that we have developed to create the room.
Is this possible with Tigase?
Looking into the code for PresenceModule around the 'repository.createNewRoom(...)' call I cannot see how to prevent user created rooms.
Is this something you would consider adding?