From 04d72aedb295a3962be46f6be6c1646b36be5d74 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 27 Sep 2011 11:14:19 +0200 Subject: [PATCH] implement forgetfulness more properly here too --- misc/tools/midi2cfg-ng.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/tools/midi2cfg-ng.pl b/misc/tools/midi2cfg-ng.pl index 00c826ff..a2e7083f 100755 --- a/misc/tools/midi2cfg-ng.pl +++ b/misc/tools/midi2cfg-ng.pl @@ -473,7 +473,7 @@ sub busybot_note_on_bot($$$$$$$) } ++$bot->{seen}{$k0}{$k1}; - if($bot->{lastuse} && $channel == $bot->{lastchannel}) + if(($bot->{lastuse} // -666) >= $time - $time_forgetfulness && $channel == $bot->{lastchannel}) { $bot->{lastchannelsequence} += 1; } -- 2.39.2