'Information messages in XMPP MUC

I'm looking for system that let me to put aditional system messages in MUC. For example 'chat room has been created', 'user1 has added user2' or 'user1 has left the room' etc. What is the best solution for that kind of messages?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source