@mud_action('block')
def block(source, args, **_):
    if not args or 1 > len(args):
        raise ActionError("Who do you want to block?")
    block_id = user_manager.name_to_id(args[0])
    block_name = user_manager.id_to_name(block_id)
    if not user_manager.player_exists(block_id):
        raise ActionError("No player named {}".format(block_name))
    if message_service.is_blocked(source, block_id):
        return "You have already blocked {}.".format(block_name)
    message_service.block_messages(source.dbo_id, block_id)
    return "You have blocked messages from {}.".format(block_name)
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/mud/mudcore.py/block/swapped operands of `>`