- def got_offline(self, pres):
- """Handler method for leaving MUC participants"""
- fjid = pres['muc']['jid']
- user = fjid if fjid.full else pres['muc']['nick']
- try:
- self.participants.remove(user)
- self.presences.pop(pres['muc']['nick'])
- except KeyError:
- self.log.error('KeyError removing participant: "%s"', user)
- self.log.debug(f'participants: - {user} got offline (len:{len(self.participants)})')
-