errbot
errbot copied to clipboard
RFE: Configure room only when necessary.
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.
Another way to "fix" this would be to catch the exceptions and log the event. And not as expensive in terms of network usage.