Fixed parsing of host masks with / in them. (I'm looking at you, freenode.)

This commit is contained in:
Elijah Perrault committed 2011-04-09 14:44:45 -06:00
1 parent 31428c8089
commit 1bcc849083
2 files changed
+3 -1

No files matched your search

+2 -1
View File
@@ -216,9 +216,10 @@ sub match_mask {
$mh =~ s/\./\\\./gxsm;
$mh =~ s/\?/\./gxsm;
$mh =~ s/\*/\.\*/gxsm;
$mh =~ s/\//\\\//gxsm;
$mh = q{^}.$mh.q{$};
# Let's grep the user's mask.
# Let's match the user's mask.
if ($mu =~ m/$mh/xsm) {
return 1;
}