Commit 31a90949 authored by Philipp Hörist's avatar Philipp Hörist

MUC: Set state to NOT_JOINED on password request

parent 21438499
......@@ -366,6 +366,7 @@ class MUC(BaseModule):
muc_data.jid, muc_data.nick)
self._join(muc_data)
elif properties.error.condition == 'not-authorized':
self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED)
self._raise_muc_event('muc-password-required', properties)
else:
self._set_muc_state(room_jid, MUCJoinedState.NOT_JOINED)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment