Ignoring muc history messages

Hi,

When my bot join a room, it receives the last messages before its coming and it’s treated by my bot but I do not wan’t to.

Thanks for you help.

You can instruct your bot to ignore messages that belong to the room history (they have a timestamp extension) or you can specify the history settings to use when joining a room to indicate “I do not want any history”.

Regards,

– Gato

"You can instruct your

bot to ignore messages that belong to the room history (they have a

timestamp extension)"

> I know that. My question is how.

In the MultiUserChat documentation you will find a few examples to join a room and how to specify a DiscussionHistory. In the javadocs of the DiscussionHistory class you will find how to use that class to receive no history. Note: Setting maxchars to 0 indicates that the user requests to receive no history.

Regards,

– Gato

Thank you, I’ll try tonight.