1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-18 12:19:13 +02:00

Small cleanup

This commit is contained in:
Daniel Berteaud 2014-10-14 19:33:53 +02:00
parent e9bb0e1137
commit 88315e6423

View File

@ -128,7 +128,10 @@ helper logout => sub {
helper create_room => sub {
my $self = shift;
my ($name,$owner) = @_;
$name = lc $name unless ($name eq lc $name);
# Convert room names to lowercase
if ($name ne lc $name){
$name = lc $name;
}
# Exit if the name isn't valid or already taken
return undef if ($self->get_room_by_name($name) || !$self->valid_room_name($name));
my $sth = eval {