@imm_action('clear flag', target_class='args', prep='from', obj_msg_class="flags", self_object=True)
def add_flag(source, target, obj, **_):
    try:
        flag_id = target[0]
    except IndexError:
        raise ActionError("Flag id required.")
    try:
        old_value = obj.flags.pop(flag_id)
    except __HOLE__:
        raise ActionError("Flag {} not set.".format(flag_id))
    source.display_line("Flag {} ({}) cleared {}.".format(flag_id, old_value, obj.name))
dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/mud/immortal.py/add_flag