]> git.donarmstrong.com Git - infobot.git/commitdiff
removed msg/say repeating code.
authordms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 28 Feb 2001 12:17:54 +0000 (12:17 +0000)
committerdms <dms@c11ca15a-4712-0410-83d8-924469b57eb5>
Wed, 28 Feb 2001 12:17:54 +0000 (12:17 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@421 c11ca15a-4712-0410-83d8-924469b57eb5

src/IRC/Irc.pl

index 6c320aecf443346c56f729181d6a1255e973ca62..53d100408c2f4949c90c12d8de5a494f175c6aa8 100644 (file)
@@ -177,12 +177,6 @@ sub say {
        return;
     }
 
-    if ($msg eq $last{say} and length($msg) > 256) {
-       &status("say: detected repeated message; skipping.");
-       return;
-    }
-    $last{say} = $msg;
-
     &status("</$talkchannel> $msg");
     if (&whatInterface() =~ /IRC/) {
        $msg = "zero" if ($msg =~ /^0+$/);
@@ -204,12 +198,6 @@ sub msg {
        return;
     }
 
-    if ($msg eq $last{msg} and length($msg) > 256) {
-       &status("msg: detected repeated message; skipping.");
-       return;
-    }
-    $last{msg} = $msg;
-
     &status(">$nick< $msg");
     $conn->privmsg($nick, $msg) if (&whatInterface() =~ /IRC/);
 }