2 # Add a believable node - used to filter nodes as being believable
4 # Copyright (c) 2004 - Dirk Koopman
9 my ($self, $line) = @_;
10 my @args = split /\s+/, uc $line;
12 my $node = shift @args;
16 return (1, $self->msg('e5')) if $self->priv < 6;
17 return (1, $self->msg('e22', $node)) unless is_callsign($node);
18 my $user = DXUser->get_current($node);
19 return (1, $self->msg('e13', $node)) unless $user->is_node;
21 foreach $call (@args) {
22 return (1, $self->msg('e22', $node)) unless is_callsign($call);
24 my $u = DXUser->get_current($call);
28 push @out, $self->msg('e13', $call);
32 foreach $call (@nodes) {
33 $user->set_believe($call);
34 push @out, $self->msg('believes', $call, $node);