mirror of
https://github.com/dani/patrix.git
synced 2024-06-17 04:19:12 +02:00
Remove preset and visibility options
This commit is contained in:
parent
0e6001877c
commit
299fd790fe
|
@ -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…
Reference in New Issue
Block a user