]> git.donarmstrong.com Git - infobot.git/blobdiff - src/IRC/Irc.pl
removed msg/say repeating code.
[infobot.git] / 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/);
 }