form.setAnswer("muc#roomconfig_maxstanzas",100)   ---> is this gone?

Hi all,

In creating my muc , I used newForm.setAnswer(“muc#roomconfig_maxstanzas”,100);

I get an error pointing to this line.

Is the syntax wrong or is this not used?

If not used, how can I set the number of stanzas returned to a person just joining a muc?

Thanks.

BTW, the error I get is:

java.lang.IllegalArgumentException: Field not found for the specified variable name.

org.jivesoftware.smackx.Form.setAnswer(Form.java:151)

Hey gforty,

That error means that the server didn’‘t offer you that field. I checked the XEP-45 spec and that field is not listed in there. BTW, Wildfire doesn’'t support that field either. Not sure where you got that field name from.

Regards,

– Gato

To control the amount of history to get when joining a room you can control it 1) from the server (in case you are using Wildfire) or 2) from the client while joining the room MultiUserChat#join(String nickname, String password, DiscussionHistory history, long timeout). Note the DiscussionHistory being passed as a parameter.

Regards,

– Gato