From: minima Date: Thu, 27 Jul 2000 10:07:33 +0000 (+0000) Subject: 1. made sure that 'en' is the default language on new users. X-Git-Tag: R_1_43~32 X-Git-Url: http://dxcluster.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0b0607e3fba746fc50920f2188ead0c4d0750b2c;p=spider.git 1. made sure that 'en' is the default language on new users. --- diff --git a/Changes b/Changes index 3f0fc2c6..d7985194 100644 --- a/Changes +++ b/Changes @@ -1,3 +1,5 @@ +27Jul00======================================================================= +1. made sure that 'en' is the default language on new users. 26Jul00======================================================================= 1. added wantgrid (to control display of grid square info on DX Broadcasts) 2. added lastoper for controlling periodic demands for user info from other diff --git a/perl/DXCommandmode.pm b/perl/DXCommandmode.pm index d88d879e..4994b313 100644 --- a/perl/DXCommandmode.pm +++ b/perl/DXCommandmode.pm @@ -65,7 +65,7 @@ sub start $self->send_file($main::motd) if (-e $main::motd); $self->state('prompt'); # a bit of room for further expansion, passwords etc $self->{priv} = $user->priv; - $self->{lang} = $user->lang; + $self->{lang} = $user->lang || 'en'; $self->{pagelth} = $user->pagelth || 20; $self->{priv} = 0 if $line =~ /^(ax|te)/; # set the connection priv to 0 - can be upgraded later $self->{consort} = $line; # save the connection type diff --git a/perl/DXProt.pm b/perl/DXProt.pm index 93baa8da..7a324625 100644 --- a/perl/DXProt.pm +++ b/perl/DXProt.pm @@ -97,7 +97,7 @@ sub start $self->{consort} = $line; $self->{outbound} = $sort eq 'O'; $self->{priv} = $user->priv; - $self->{lang} = $user->lang; + $self->{lang} = $user->lang || 'en'; $self->{isolate} = $user->{isolate}; $self->{consort} = $line; # save the connection type $self->{here} = 1;