From d5aa598638b98055bc45aaf8b686702442dac491 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Thu, 7 Sep 2017 17:56:09 +0200 Subject: [PATCH] Just output the room ID when creating a room --- scripts/patrix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/patrix b/scripts/patrix index d731300..fd5f203 100644 --- a/scripts/patrix +++ b/scripts/patrix @@ -29,7 +29,7 @@ GetOptions( "invite=s@" => \$opt->{invite}, "name=s" => \$opt->{name}, "alias=s" => \$opt->{alias}, - "topic=s" => \$opt->{topic} + "topic=s" => \$opt->{topic}, ); if (-e File::HomeDir->my_home . "/.patrixrc" && !$opt->{conf}){ @@ -296,7 +296,7 @@ sub create_room { die "Error creating room on $opt->{server}\n"; } my $room_id = from_json($resp->decoded_content)->{room_id}; - print "Room created with ID $room_id\n"; + print "$room_id\n"; } # Should we logout at the end ? Only if we used login and pass