'check if this entry applies to the specified agent'

def applies_to(self, useragent):

    useragent = useragent.split('/')[0].lower()
    for agent in self.useragents:
        if (agent == '*'):
            return True
        agent = agent.lower()
        if (agent in useragent):
            return True
    return False
