X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXCommandmode.pm;h=6258acb4a104b8186efd36935ed3de0cb390f7f2;hb=33c95e70cc90be9f60c4efd73717386b299048f7;hp=eef342bc7dbd718b40ad203f80c5e0f61d6883ee;hpb=6624dcdf07d628e8d6a16fc6549edf40be25b7b2;p=spider.git diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index eef342bc..6258acb4 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -125,6 +125,13 @@ sub start $self->tell_login('loginu'); + # do we need to send a forward/opernam? + my $lastoper = $user->lastoper || 0; + my $homenode = $user->homenode || ""; + if ($homenode eq $main::mycall && $lastoper + $DXUser::lastoperinterval < $main::systime) { + run_cmd($DXProt::me, "forward/opernam $call"); + $user->lastoper($main::systime); + } } # @@ -649,7 +656,7 @@ sub talk { my ($self, $from, $to, $via, $line) = @_; $line =~ s/\\5E/\^/g; - $self->send_later('T', "$to de $from: $line") if $self->{talk}; + $self->local_send('T', "$to de $from: $line") if $self->{talk}; Log('talk', $to, $from, $main::mycall, $line); # send a 'not here' message if required unless ($self->{here} && $from ne $to) {