mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 14:22:05 +01:00
[doc] Fix config example in MUC doc
This commit is contained in:
parent
a0b8ad98c9
commit
7b3bd6ff96
1 changed files with 2 additions and 2 deletions
|
@ -472,7 +472,7 @@ muc = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||||
muc.create("testbot");
|
muc.create("testbot");
|
||||||
// User1 (which is the room owner) configures the room as a moderated room
|
// User1 (which is the room owner) configures the room as a moderated room
|
||||||
Form form = muc.getConfigurationForm();
|
Form form = muc.getConfigurationForm();
|
||||||
Form answerForm = form.createAnswerForm();
|
FillableForm answerForm = configForm.getFillableForm();
|
||||||
answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
|
answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
|
||||||
muc.sendConfigurationForm(answerForm);
|
muc.sendConfigurationForm(answerForm);
|
||||||
|
|
||||||
|
@ -612,7 +612,7 @@ muc = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||||
muc.create("testbot");
|
muc.create("testbot");
|
||||||
// User1 (which is the room owner) configures the room as a moderated room
|
// User1 (which is the room owner) configures the room as a moderated room
|
||||||
Form form = muc.getConfigurationForm();
|
Form form = muc.getConfigurationForm();
|
||||||
Form answerForm = form.createAnswerForm();
|
FillableForm answerForm = configForm.getFillableForm();
|
||||||
answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
|
answerForm.setAnswer("muc#roomconfig_moderatedroom", "1");
|
||||||
muc.sendConfigurationForm(answerForm);
|
muc.sendConfigurationForm(answerForm);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue