- $line =~ s/\^//og; # remove any ^ characters
- my $prot = DXProt::pc10($from, $to, $via, $line);
- DXProt::route($via?$via:$to, $prot);
- Log('talk', $to, $from, $via?$via:$main::mycall, $line);
+ my $s = $to;
+ $s .= ">$via" if $via && $via ne '*';
+ my $ref = $self->talklist;
+ if ($ref) {
+ unless (grep { $_ eq $s } @$ref) {
+ $main::me->normal(DXProt::pc93($to, $self->call, $via, $self->msg('talkstart')));
+ $self->state('talk');
+ push @$ref, $s;
+ }
+ } else {
+ $self->talklist([ $s ]);
+ $main::me->normal(DXProt::pc93($to, $self->call, $via, $self->msg('talkstart')));
+ push @out, $self->msg('talkinst');
+ $self->state('talk');
+ }
+ Log('talk', $to, $from, '>' . ($via || ($dxchan && $dxchan->call) || '*'), $self->msg('talkstart'));
+ push @out, $self->talk_prompt;