diff --git a/doc/CHANGELOG b/doc/CHANGELOG index f9dfef4..97137d9 100644 --- a/doc/CHANGELOG +++ b/doc/CHANGELOG @@ -3,6 +3,7 @@ Auto IRC Bot 3.0: Change Log 3.0 Indev =============================================================================== + * Fixed parsing of host masks with / in them. (if it was broken) * Werewolf: Fixed a leave before game begin bug. * Aliases now work in PM's to the bot too. * Added an epic, Werewolf module. diff --git a/lib/API/IRC.pm b/lib/API/IRC.pm index e0c225d..be7b4b6 100644 --- a/lib/API/IRC.pm +++ b/lib/API/IRC.pm @@ -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; }