use AnnTalk;
use WCY;
use Sun;
+use Internet;
use strict;
use vars qw(%Cache %cmd_cache $errstr %aliases $scriptbase);
$self->{logininfo} = $user->wantlogininfo;
$self->{here} = 1;
+ # get the filters
+ $self->{spotsfilter} = Filter::read_in('spots', $call, 0) || Filter::read_in('spots', 'user_default', 0);
+ $self->{wwvfilter} = Filter::read_in('wwv', $call, 0) || Filter::read_in('wwv', 'user_default', 0);
+ $self->{wcyfilter} = Filter::read_in('wcy', $call, 0) || Filter::read_in('wcy', 'user_default', 0);
+ $self->{annfilter} = Filter::read_in('ann', $call, 0) || Filter::read_in('ann', 'user_default', 0) ;
+
# clean up qra locators
my $qra = $user->qra;
$qra = undef if ($qra && !DXBearing::is_qra($qra));
$line =~ s/\s+$//o; # why am having to do this?
$self->send($line);
}
- $self->{pagedata} = \@_;
+ $self->{pagedata} = [ @_ ];
$self->state('page');
$self->send($self->msg('page', scalar @_));
} else {
# split the command line up into parts, the first part is the command
my ($cmd, $args) = split /\s+/, $cmdline, 2;
- $args = "" unless $args;
+ $args = "" unless defined $args;
if ($cmd) {
my $acmd = CmdAlias::get_cmd($cmd);
if ($acmd) {
($cmd, $args) = split /\s+/, "$acmd $args", 2;
- $args = "" unless $args;
+ $args = "" unless defined $args;
dbg('command', "aliased cmd: $cmd $args");
}
sleep(1);
}
- if ($call eq $main::myalias) { # unset the channel if it is us really
- my $node = DXNode->get($main::mycall);
- $node->{dxchan} = 0;
- }
+# if ($call eq $main::myalias) { # unset the channel if it is us really
+# my $node = DXNode->get($main::mycall);
+# $node->{dxchan} = 0;
+# }
# issue a pc17 to everybody interested
my $nchan = DXChannel->get($main::mycall);
{
my ($self, $from, $to, $via, $line) = @_;
$line =~ s/\\5E/\^/g;
- $self->send("$to de $from $line") if $self->{talk};
+ $self->send("$to de $from: $line") if $self->{talk};
Log('talk', $to, $from, $main::mycall, $line);
}