Additions to the Messages file for Spanish Language from Jesus ea1dav
[spider.git] / perl / DXCommandmode.pm
index eef342bc7dbd718b40ad203f80c5e0f61d6883ee..6258acb4a104b8186efd36935ed3de0cb390f7f2 100644 (file)
@@ -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) {