remove the dupefile automatically if it can't be opened
[spider.git] / perl / DXUser.pm
index f31b79e6da0ee167b0bd83e9de92d73ccbad73ea..cf847bc897778748295e61aa41d15962a8ef83a3 100644 (file)
@@ -78,8 +78,8 @@ $lrusize = 2000;
                  wantann_talk => '0,Talklike Anns,yesno',
                  wantpc90 => '1,Req PC90,yesno',
                  wantnp => '1,Req New Protocol,yesno',
-                 wantusers => '9,Want Users from node,yesno',
-                 wantsendusers => '9,Send users to node,yesno',
+                 wantpc16 => '9,Want Users from node,yesno',
+                 wantsendpc16 => '9,Send users to node,yesno',
                  lastoper => '9,Last for/oper,cldatetime',
                  nothere => '0,Not Here Text',
                  registered => '9,Registered?,yesno',
@@ -122,9 +122,9 @@ sub init
        confess "need a filename in User" if !$fn;
        $fn .= ".v2";
        if ($mode) {
-               $dbm = tie (%u, 'DB_File', $fn, O_CREAT|O_RDWR, 0666, $DB_BTREE) or confess "can't open user file: $fn ($!)";
+               $dbm = tie (%u, 'DB_File', $fn, O_CREAT|O_RDWR, 0666, $DB_BTREE) or confess "can't open user file: $fn ($!) [rebuild it from user_asc?]";
        } else {
-               $dbm = tie (%u, 'DB_File', $fn, O_RDONLY, 0666, $DB_BTREE) or confess "can't open user file: $fn ($!)";
+               $dbm = tie (%u, 'DB_File', $fn, O_RDONLY, 0666, $DB_BTREE) or confess "can't open user file: $fn ($!) [rebuild it from user_asc?]";
        }
        
        $filename = $fn;
@@ -585,14 +585,14 @@ sub wantann_talk
        return _want('ann_talk', @_);
 }
 
-sub wantusers
+sub wantpc16
 {
-       return _want('users', @_);
+       return _want('pc16', @_);
 }
 
-sub wantsendusers
+sub wantsendpc16
 {
-       return _want('annsendusers', @_);
+       return _want('sendpc16', @_);
 }
 
 sub wantlogininfo