]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
implement forgetfulness more properly here too
authorRudolf Polzer <divverent@alientrap.org>
Tue, 27 Sep 2011 09:14:19 +0000 (11:14 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 27 Sep 2011 09:14:19 +0000 (11:14 +0200)
misc/tools/midi2cfg-ng.pl

index 00c826ff6827c6d5919da0075a8d375ff43a2fda..a2e7083f9637446fb039e2a2d4807e7bf689abac 100755 (executable)
@@ -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;
        }