def add_to_blacklist(bot, user, args):
    '''Adds a user to the blacklist.'''
    name = user['name']
    if not bot.blacklist.is_present(name):
        bot.blacklist.add(name)
        return True
    return False
Adds a user to the blacklist.
securitybot/commands.py