… | |
… | |
1695 | \@logins |
1695 | \@logins |
1696 | } |
1696 | } |
1697 | |
1697 | |
1698 | =item $player->maps |
1698 | =item $player->maps |
1699 | |
1699 | |
|
|
1700 | =item cf::player::maps $login |
|
|
1701 | |
1700 | Returns an arrayref of map paths that are private for this |
1702 | Returns an arrayref of map paths that are private for this |
1701 | player. May block. |
1703 | player. May block. |
1702 | |
1704 | |
1703 | =cut |
1705 | =cut |
1704 | |
1706 | |
… | |
… | |
1765 | |
1767 | |
1766 | =cut |
1768 | =cut |
1767 | |
1769 | |
1768 | sub find_by_path($) { |
1770 | sub find_by_path($) { |
1769 | my ($path) = @_; |
1771 | my ($path) = @_; |
|
|
1772 | |
|
|
1773 | $path =~ s/^~[^\/]*//; # skip ~login |
1770 | |
1774 | |
1771 | my ($match, $specificity); |
1775 | my ($match, $specificity); |
1772 | |
1776 | |
1773 | for my $region (list) { |
1777 | for my $region (list) { |
1774 | if ($region->{match} && $path =~ $region->{match}) { |
1778 | if ($region->{match} && $path =~ $region->{match}) { |