Remove preset and visibility options

tags/patrix-0.1.4-1
Daniel Berteaud 7 years ago
parent 0e6001877c
commit 299fd790fe
  1. 4
      scripts/patrix

@ -30,8 +30,6 @@ GetOptions(
"name=s" => \$opt->{name},
"alias=s" => \$opt->{alias},
"topic=s" => \$opt->{topic},
"preset=s" => \$opt->{preset},
"visibility=s" => \$opt->{visibility},
"federation!" => \$opt->{federation}
);
@ -288,8 +286,6 @@ sub create_room {
$json->{topic} = $opt->{topic} if $opt->{topic};
$json->{name} = $opt->{name} if $opt->{name};
$json->{invite} = $opt->{invite} if $opt->{invite};
$json->{preset} = $opt->{preset} if $opt->{preset};
$json->{visibility} = $opt->{visibility} if $opt->{visbility};
$json->{creation_content}->{'m.federate'} = $opt->{federation};
$req->header( 'Content-Type' => 'application/json' );
$req->content( to_json($json) );

Loading…
Cancel
Save