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

+1
View File
@@ -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.
+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;
}