Remove trailing cr in modified room message

This commit is contained in:
Daniel Berteaud 2015-07-17 08:45:34 +02:00
parent ed2601866c
commit 3a066728ba
1 changed files with 2 additions and 1 deletions

View File

@ -460,6 +460,7 @@ helper modify_room => sub {
}
}
if ($mods ne ''){
chomp($mods);
$msg .= "\nModified fields:\n$mods";
$self->log_event({
event => 'room_modify',
@ -1211,7 +1212,7 @@ helper export_events_xlsx => sub {
$sheet->write($row, 0, \@details);
my $cr = scalar(split("\n", $events->{$e}->{message}));
if ($cr > 1){
$sheet->set_row($row, $cr*15);
$sheet->set_row($row, $cr*12);
}
$row++;
}