From 2308580ac4fd8376681c29074cc1b64f9a52511f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Tue, 14 Jul 2015 11:40:56 +0200 Subject: [PATCH] Only log room_modify event if some param was changed --- vroom.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vroom.pl b/vroom.pl index 75fce9a..5aafb85 100755 --- a/vroom.pl +++ b/vroom.pl @@ -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; };