Only log room_modify event if some param was changed

This commit is contained in:
Daniel Berteaud 2015-07-14 11:40:56 +02:00
parent 211800e6dc
commit 2308580ac4
1 changed files with 4 additions and 4 deletions

View File

@ -453,11 +453,11 @@ helper modify_room => sub {
}
if ($mods ne ''){
$msg .= "\nModified fields:\n$mods";
$self->log_event({
event => 'room_modify',
msg => $msg
});
}
$self->log_event({
event => 'room_modify',
msg => $msg
});
return 1;
};