comparison sat/plugins/plugin_xep_0045.py @ 3015:7b8d40b17451

plugin XEP-0045: fixed a bad attribute in a log message.
author Goffi <goffi@goffi.org>
date Fri, 19 Jul 2019 23:01:57 +0200
parents c8c68a3b0a79
children ab2696e34d29
comparison
equal deleted inserted replaced
3014:b6abf8af87db 3015:7b8d40b17451
861 expected_state = ROOM_STATES[new_state_idx-1] 861 expected_state = ROOM_STATES[new_state_idx-1]
862 if room.state != expected_state: 862 if room.state != expected_state:
863 log.error(_( 863 log.error(_(
864 u"room {room} is not in expected state: room is in state {current_state} " 864 u"room {room} is not in expected state: room is in state {current_state} "
865 u"while we were expecting {expected_state}").format( 865 u"while we were expecting {expected_state}").format(
866 room=room.userhost(), 866 room=room.roomJID.userhost(),
867 current_state=room.state, 867 current_state=room.state,
868 expected_state=expected_state)) 868 expected_state=expected_state))
869 room.state = new_state 869 room.state = new_state
870 870
871 def _addRoom(self, room): 871 def _addRoom(self, room):