X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fcreate_sysop.pl;h=43d59785899e31ee1754a5584f43f1544b555fc8;hb=f46017e7bef9ee062cd5a8648d214eabe585da25;hp=dcab2f1559ca0281536da5c7e2c709335071f86e;hpb=f77b59f4fcceb428142461972e94345419cbda28;p=spider.git diff --git a/perl/create_sysop.pl b/perl/create_sysop.pl index dcab2f15..43d59785 100755 --- a/perl/create_sysop.pl +++ b/perl/create_sysop.pl @@ -24,12 +24,30 @@ sub create_it $self->{lat} = $mylatitude; $self->{long} = $mylongtitude; $self->{email} = $myemail; + $self->{bbsaddr} = $mybbsaddr; $self->{sort} = 'C'; # C - Console user, S - Spider cluster, A - AK1A, U - User, B - BBS $self->{priv} = 9; # 0 - 9 - with 9 being the highest $self->{lastin} = 0; # write it away $self->close(); + + # now do one for the alias + $self = DXUser->new($myalias); + $self->{name} = $myname; + $self->{qth} = $myqth; + $self->{qra} = $mylocator; + $self->{lat} = $mylatitude; + $self->{long} = $mylongtitude; + $self->{email} = $myemail; + $self->{bbsaddr} = $mybbsaddr; + $self->{sort} = 'U'; # C - Console user, S - Spider cluster, A - AK1A, U - User, B - BBS + $self->{priv} = 9; # 0 - 9 - with 9 being the highest + $self->{lastin} = 0; + + # write it away + $self->close(); + DXUser->finish(); print "New user database created as $userfn\n"; }