mirror of
https://gitlab.com/xonotic/xonotic
synced 2024-12-15 19:35:24 +00:00
implement forgetfulness more properly here too
This commit is contained in:
parent
92972e6be4
commit
04d72aedb2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user