]> git.donarmstrong.com Git - infobot.git/commitdiff
at -> mailto remnants from stock infobot removed
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 4 Aug 2000 15:19:24 +0000 (15:19 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Fri, 4 Aug 2000 15:19:24 +0000 (15:19 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@29 c11ca15a-4712-0410-83d8-924469b57eb5

src/Factoids/Statement.pl

index 09e59f9635bbc4b2bb2dae160dc4385ebe7ccd40..fe83ab3081972fdf8d53e3cbdbf725a538a22a20 100644 (file)
@@ -31,11 +31,6 @@ sub doStatement {
     $in =~ s/ www\./ http:\/\/www\./ig;
     $in =~ s/ ftp\./ ftp:\/\/ftp\./ig;
 
-    # look for a "type nugget". this should be externalized.
-    $urlType = "mailto" if ($in =~ /\bmailto:.+\@.+\..{2,}/i);
-    $urlType = "mailto" if ($in =~ s/\b(\S+\@\S+\.\S{2,})/mailto:$1/gi);
-    $in =~ s/(mailto:)+/mailto:/g;
-
     $urlType = "about"   if ($in =~ /\babout:/i);
     $urlType = 'afp'     if ($in =~ /\bafp:/);
     $urlType = 'file'    if ($in =~ /\bfile:/);