--- deliantra/server/ext/commands.ext 2007/07/06 03:52:51 1.54 +++ deliantra/server/ext/commands.ext 2007/07/22 17:10:06 1.56 @@ -187,9 +187,11 @@ cf::register_command mapinfo => sub { my ($ob) = @_; - my $map = $ob->contr->observe->map + my $observe = $ob->contr->observe; + + my $map = $observe->map or return; - $ob->reply (undef, (sprintf "%s (%s) %s", $map->name, $map->path, $ob->region->longname)); + $ob->reply (undef, (sprintf "%s (%s) %s", $map->name, $map->path, $observe->region->longname)); $ob->reply (undef, (sprintf "players: %d difficulty: %d size: %d start: %dx%d timeout: %d", (scalar $map->players), $map->difficulty, $map->width, $map->height, $map->enter_x, $map->enter_y, $map->timeout)) if $ob->flag (cf::FLAG_WIZ);