- my $buf = sprintf "DX de %-7.7s%11.1f %-12.12s %-*s $t$loc", "$_[4]:", $_[0], $_[1], $self->{consort} eq 'local' ? 29 : 30, $_[3];
+
+ # USDB stuff
+ if ($USDB::present && $self->{user}->wantusstate) {
+ my ($city, $state) = USDB::get($_[4]);
+ if ($state) {
+ $loc = ' ' . $state;
+ }
+ ($city, $state) = USDB::get($_[1]);
+ if ($state) {
+ $comment = substr($comment, 0, $self->{consort} eq 'local' ? 26 : 27) . ' ' . $state;
+ }
+ }
+
+ my $buf = sprintf "DX de %-7.7s%11.1f %-12.12s %-s $t$loc", "$_[4]:", $_[0], $_[1], $comment;
+