+03Jul07=======================================================================
+1. fix unwanted dupe notifications if a PC12 comes back in on a loop.
02Jul07=======================================================================
1. Add a new command to show the contents of the cmd_cache. This allows those
people whom develop their own commands to see which version they are using.
use vars qw(%dup $duplth $dupage $filterdef);
$duplth = 60; # the length of text to use in the deduping
-$dupage = 5*3600; # the length of time to hold spot dups
+$dupage = 5*3600; # the length of time to hold ann dups
$filterdef = bless ([
# tag, sort, field, priv, special parser
['by', 'c', 0],
$eph_pc34_restime = 30;
$pingint = 5*60;
$obscount = 2;
-$chatdupeage = 20 * 60 * 60;
+$chatdupeage = 20 * 60;
$chatimportfn = "$main::root/chat_import";
$investigation_int = 12*60*60; # time between checks to see if we can see this node
$pc19_version = 5466; # the visible version no for outgoing PC19s generated from pc59
}
}
- if (AnnTalk::dup($from, $_[1], $_[2])) {
+ if (AnnTalk::dup($from, $target, $_[2])) {
my $dxchan = DXChannel::get($from);
- if ($dxchan && $dxchan->is_user) {
+ if ($self == $main::me && $dxchan && $dxchan->is_user) {
if ($dxchan->priv < 5) {
$dxchan->send($dxchan->msg('dup'));
return;
}
}
-my $msgid = 0;
+my $msgid = int rand(1000);
sub nextchatmsgid
{
}
}
- if (AnnTalk::dup($from, $target, $_[2], $chatdupeage)) {
+ if (AnnTalk::dup($from, $target, $_[2], $main::systime + $chatdupeage)) {
my $dxchan = DXChannel::get($from);
- if ($dxchan && $dxchan->is_user) {
+ if ($self == $main::me && $dxchan && $dxchan->is_user) {
if ($dxchan->priv < 5) {
$dxchan->send($dxchan->msg('dup'));
return;