errbot icon indicating copy to clipboard operation
errbot copied to clipboard

RFE: Configure room only when necessary.

Open apophys opened this issue 12 years ago • 1 comments

At the moment Err tries to configure the room right after the join.

This is necessary when a room is being created. See section 10.1 of XEP-0045.

However, there are cases when this is not desirable. E.g. in the case the account the bot is using does not have the rights to do that (regular room occupant) which leads to forbidden error and a hiccup in the error log even when the bot connects to the room.

A quick solution to this would be to query for the room/room info and if the room exists, do not try to configure it.

apophys avatar Feb 10 '14 21:02 apophys

Another way to "fix" this would be to catch the exceptions and log the event. And not as expensive in terms of network usage.

apophys avatar Feb 11 '14 14:02 apophys