make setting of pc9x harder
[spider.git] / cmd / set / qth.pl
index 90d784e14ffc9cf936eb56574068826911b4a10d..4a5a881fbbf7aac29797272e208983a72a425b4b 100644 (file)
@@ -13,6 +13,7 @@ my $user;
 # remove leading and trailing spaces
 $line =~ s/^\s+//;
 $line =~ s/\s+$//;
+$line =~ s/[{}]//g;   # no braces allowed
 
 return (1, $self->msg('qthe1')) if !$line;
 
@@ -20,7 +21,9 @@ $user = DXUser->get_current($call);
 if ($user) {
        $user->qth($line);
        $user->put();
-       DXProt::broadcast_ak1a(DXProt::pc41($call, 2, $line), $DXProt::me);
+       my $s = DXProt::pc41($call, 2, $line);
+       DXProt::eph_dup($s);
+       DXChannel::broadcast_all_nodes($s, $main::me) ;
        return (1, $self->msg('qth', $line));
 } else {
        return (1, $self->msg('namee2', $call));