Enter room problem

Hello everyone.

I have a problem with an entering a room. I saw similar discussion on this forum but there were no solutions to exactly my issue.

So, the problem is that I need to have the following: user joins the room, if such room does not exist user creates such room. I do it with the following query:

<presence to=‘test_room@conference.newfolder/max-flash’ from=‘jabber@newfolder/6710.642297588754445’><x xmlns=‘http://jabber.org/protocol/muc’/>

If such room does not exist it will be created successfully and I can send messages in it. If it is already exists server does not send me conflict error if such nick already exists in this room. But if I send a register query it will send me conflict error.

What should I do in this situation?

Thanks

Also, when room users limit is reached the server does not send an error message to the next one.

So, my problem is that server does not let me know if any errors happend in the room. Can it be connected with the configurations?