send a forward/opernam for every user that logs in if it hasn't been
authorminima <minima>
Thu, 16 Aug 2001 21:48:52 +0000 (21:48 +0000)
committerminima <minima>
Thu, 16 Aug 2001 21:48:52 +0000 (21:48 +0000)
done in the last month

Changes
perl/DXCommandmode.pm

diff --git a/Changes b/Changes
index fbe3c8f658211bbd01978c63841e5f80bd82a482..cba15c03fa8f58b65eef86df220114a19fdfbaaa 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,3 +1,6 @@
+16Aug01=======================================================================
+1. send a forward/opernam for a logged in user once a month (when they next
+login).
 15Aug01=======================================================================
 1. fix problem with talks not coming out anymore
 13Aug01=======================================================================
index 2f3d85f23b95492424846bb05acbe4381106deca..8dcb9b6cf9b0b07451199d825fddee6ce451205c 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 < $main::systime + $DXUser::lastoperinterval) {
+               run_cmd($DXProt::me, "forward/opernam $call");
+               $user->lastoper($main::systime);
+       }
 }
 
 #