+07Jan99========================================================================
+1. Fixed Geomag after emacs reformatted it wrong so sh/wwv works again.
+2. Added more range checking in WWV spots (they really are a heap of ...)
06Jan99========================================================================
1. Do some range checking for spots and WWV in the future (got a WWV for Oct
2034 whhich caused a bit of confusion!)
+#
+# show wx data
+#
+return (1, "not implemented yet");
die "trying to create a duplicate channel for $call" if $channels{$call};
$self->{call} = $call;
$self->{conn} = $conn if defined $conn; # if this isn't defined then it must be a list
- $self->{user} = $user if defined $user;
+ if (defined $user) {
+ $self->{user} = $user;
+ $self->{lang} = $user->lang;
+ $user->new_group() if !$user->group;
+ $self->{group} = $user->group;
+ }
$self->{startt} = $self->{t} = time;
$self->{state} = 0;
$self->{oldstate} = 0;
- $self->{lang} = $user->{lang} if defined $user;
$self->{lang} = $main::lang if !$self->{lang};
- $user->new_group() if !$user->group;
- $self->{group} = $user->group;
$self->{func} = "";
bless $self, $pkg;
return $channels{$call} = $self;
dbg('chan', "Dup WWV Spot ignored\n");
return;
}
- if ($d > $main::systime + 900) {
+ if ($d > $main::systime + 900 || $field[2] < 0 || $field[2] > 23) {
dbg('chan', "WWV Date ($field[1] $field[2]) out of range");
return;
}
$eval = qq(
my \$c;
my \$ref;
- for (\$c = \$ #in; \$c >= 0; \$c--) {
+ for (\$c = \$#in; \$c >= 0; \$c--) {
\$ref = \$in[\$c];
if ($search) {
\$count++;