Fix get-room-id, Room ID is already resolved at this point

This commit is contained in:
Daniel Berteaud 2017-11-23 07:52:30 +01:00
parent b72ca6776f
commit 4f33da6593
1 changed files with 1 additions and 1 deletions

View File

@ -547,7 +547,7 @@ elsif ($opt->{action} eq 'get-room-list'){
list_room();
}
elsif ($opt->{action} eq 'get-room-id'){
print room_alias_to_id($opt->{room}) . "\n";
print $opt->{room} . "\n";
}
elsif ($opt->{action} =~ m/^send\-(msg|message|notice)$/){
join_room();