Handle all MUC messages

Hello.

Skipping an introduction, I need to:
1.Change user's room manually from code

2. Handle special "system" calls (for example calls like /changeroom must be not transported to everybody, but handeled by system and the room of the user must be changed)

3. Store lots of additional data about user in mnesia table (I don't think that LDAP in this case is so wonderful idea)

How would you recommend me to do that? Writing custom MUC or handling all messages in separate module using "filter_..." event notification?

Thank you in advice.

Syndicate content