Return an error if trying to create an already existing room

master
Daniel Berteaud 9 years ago
parent 57c5252f7e
commit a7efdd54a7
  1. 1
      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`

Loading…
Cancel
Save