mirror of
https://github.com/dani/vroom.git
synced 2024-06-29 15:03:41 +02:00
Small cleanup
This commit is contained in:
parent
e9bb0e1137
commit
88315e6423
5
vroom.pl
5
vroom.pl
|
@ -128,7 +128,10 @@ helper logout => sub {
|
||||||
helper create_room => sub {
|
helper create_room => sub {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
my ($name,$owner) = @_;
|
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
|
# Exit if the name isn't valid or already taken
|
||||||
return undef if ($self->get_room_by_name($name) || !$self->valid_room_name($name));
|
return undef if ($self->get_room_by_name($name) || !$self->valid_room_name($name));
|
||||||
my $sth = eval {
|
my $sth = eval {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user