diff options
| author | John Wiseman <john.wiseman@cantab.net> | 2022-10-18 10:09:06 +0100 |
|---|---|---|
| committer | John Wiseman <john.wiseman@cantab.net> | 2022-10-18 10:09:06 +0100 |
| commit | 2bd6071d0e235139ce3b078568a45367221b2f05 (patch) | |
| tree | e727f2d55c60dc9d811cfcfd17340ab8a35a6d8d /FLDigi.c | |
| parent | 4a4271cb07f8c69d4e064a2ef5ccc6c400b4f957 (diff) | |
Version 6.0.23.2223.24
Diffstat (limited to 'FLDigi.c')
| -rw-r--r-- | FLDigi.c | 31 |
1 files changed, 30 insertions, 1 deletions
@@ -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;
}
|
