Alos trim / at the end of the server to build Matrix ID

This commit is contained in:
Daniel Berteaud 2017-09-24 11:42:50 +02:00
parent 34db17e370
commit e74a1a1431
1 changed files with 1 additions and 0 deletions

View File

@ -226,6 +226,7 @@ sub who_am_i {
# Lets just build it manually for now
my $server = $opt->{server};
$server =~ s|^https?://||;
$server =~ s|/$||;
return '@' . $opt->{user} .':' . $server;
}