1
0
mirror of https://github.com/dani/patrix.git synced 2024-06-17 04:19:12 +02:00

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

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;
}