From a8e94dd99333587ad47b11f2e9bbdc7e1f9b4664 Mon Sep 17 00:00:00 2001 From: dms Date: Wed, 28 Feb 2001 12:17:54 +0000 Subject: [PATCH] removed msg/say repeating code. git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@421 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/IRC/Irc.pl | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/IRC/Irc.pl b/src/IRC/Irc.pl index 6c320ae..53d1004 100644 --- a/src/IRC/Irc.pl +++ b/src/IRC/Irc.pl @@ -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(" $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/); } -- 2.39.2