ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf.pm
(Generate patch)

Comparing deliantra/server/lib/cf.pm (file contents):
Revision 1.522 by root, Sat Apr 17 02:22:14 2010 UTC vs.
Revision 1.523 by root, Sat Apr 17 02:39:46 2010 UTC

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
1700Returns an arrayref of map paths that are private for this 1702Returns an arrayref of map paths that are private for this
1701player. May block. 1703player. May block.
1702 1704
1703=cut 1705=cut
1704 1706
1765 1767
1766=cut 1768=cut
1767 1769
1768sub find_by_path($) { 1770sub 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}) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines