From 2bd6071d0e235139ce3b078568a45367221b2f05 Mon Sep 17 00:00:00 2001 From: John Wiseman Date: Tue, 18 Oct 2022 10:09:06 +0100 Subject: Version 6.0.23.22 --- FLDigi.c | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'FLDigi.c') diff --git a/FLDigi.c b/FLDigi.c index da5d00c..243c1ce 100644 --- a/FLDigi.c +++ b/FLDigi.c @@ -2854,7 +2854,36 @@ SendKReply: if (CTRL == 't') { - // Talk - not sure what to do with these + // Talk - pass to node + + char * call1; + char * context; + char * ptr; + + PMSGWITHLEN buffptr; + + Input[Len] = 0; // Removes checksum + + call1 = strtok_s(&Input[1], " ", &context); + strlop(call1, ':'); + + if (strcmp(STREAM->RemoteCall, call1)) + return; + + if (Channel != ARQ->OurStream) + return; // Wrong Session + + buffptr = (PMSGWITHLEN)GetBuff(); + + if (buffptr == 0) return; // No buffers, so ignore + + while (ptr = strchr(context, 10)) + *ptr = 13; + + buffptr->Len = strlen(context); + strcpy(buffptr->Data, context); + + C_Q_ADD(&TNC->Streams[Stream].PACTORtoBPQ_Q, buffptr); return; } -- cgit v1.2.3