code: def kick_user(self, jid):
          
          for member in filter(lambda m: m['JID'] == jid, self.params['MEMBERS']):
              member['STATUS'] = 'KICKED'
              self.send_message('You have been kicked from %s' % (self.name,), member)
  
              self.client.sendPresence(jid=member['JID'], typ='unsubscribed')
              self.client.sendPresence(jid=member['JID'], typ='unsubscribe')
              self.broadcast('kicking %s from the room' % (jid,))
docs: Kicks a member from the chatroom. Kicked user will receive no more messages.