From: dms Date: Fri, 15 Dec 2000 15:36:31 +0000 (+0000) Subject: very nice typo for regex, Angel indirectly found this :) X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ca23d2678da319be0162afae675d733a4741440e;p=infobot.git very nice typo for regex, Angel indirectly found this :) git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@200 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/src/Misc.pl b/src/Misc.pl index 22bef8f..a593c3f 100644 --- a/src/Misc.pl +++ b/src/Misc.pl @@ -395,7 +395,7 @@ sub IsHostMatch { # auth if 1) user and host match 2) user and nick match. # this may change in the future. - if ($this{'user'} =~ /^\Q$local{'user'}$/i) { + if ($this{'user'} =~ /^\Q$local{'user'}\E$/i) { return 2 if ($this{'host'} eq $local{'host'}); return 1 if ($this{'nick'} eq $local{'nick'}); } @@ -609,6 +609,7 @@ sub Forker { &shmWrite($shm,"SET FORKPID $label $$"); } + ### TODO: use AUTOLOAD if (!&loadMyModule($myModules{$label})) { &DEBUG("Forker: failed?"); return;