| | 715 | mucStatus = stanza.xpath_eval('d:x/d:status', |
| | 716 | {'d': 'http://jabber.org/protocol/muc#user'}) |
| | 717 | |
| | 718 | if len(mucStatus) > 0: |
| | 719 | curAttr = mucStatus[0].properties |
| | 720 | while curAttr: |
| | 721 | if curAttr.name == 'code' and curAttr.content == '307': |
| | 722 | """ this user must have been kicked. now we must make sure |
| | 723 | to delete his access token and change the password for |
| | 724 | this room |
| | 725 | """ |
| | 726 | log.debug("############") |
| | 727 | groupServices.setChatgroupMemberTokenInvalid( |
| | 728 | self.site, |
| | 729 | room.chat_id, |
| | 730 | user.nick) |
| | 731 | """ disabled resetting password as this would need to be done on xmpp level too and that's just too much work for now """ |
| | 732 | # password = unicode(newHash()) |
| | 733 | # room.setPassword(password) |
| | 734 | break |
| | 735 | curAttr = curAttr.next |
| | 736 | |