From a7efdd54a7bab50ae48dfab9d8fae3391c6861cc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 26 Jun 2015 13:30:46 +0200 Subject: [PATCH] Return an error if trying to create an already existing room --- vroom.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/vroom.pl b/vroom.pl index 377bcec..713bd90 100755 --- a/vroom.pl +++ b/vroom.pl @@ -207,6 +207,7 @@ helper create_room => sub { return 0; } if ($self->get_room_by_name($name)){ + return 0; } my $sth = eval { $self->db->prepare('INSERT INTO `rooms`