diff --git a/QnetVoice.cpp b/QnetVoice.cpp index 553c75a..e78c3a8 100644 --- a/QnetVoice.cpp +++ b/QnetVoice.cpp @@ -70,12 +70,12 @@ int main(int argc, char *argv[]) char RADIO_ID[21]; if (argc != 4) { - printf("Usage: %s \n", argv[0]); + printf("Usage: %s \n", argv[0]); printf("Where...\n"); - printf(" is one of your modules: A, B or C\n"); - printf(" is an installed voice file in the configured\n"); - printf(" directory, for example \"unlinked.dat\"\n"); - printf(" is an up to 20-character text message\n"); + printf(" is one of your modules: A, B or C\n"); + printf(" is an installed voice file in the configured\n"); + printf(" directory, for example \"unlinked.dat\"\n"); + printf(" is an up to 20-character text message\n"); return 0; } char module = argv[1][0]; diff --git a/announce/baddtmfcmd.dat b/announce/baddtmfcmd.dat new file mode 100644 index 0000000..b6190d1 Binary files /dev/null and b/announce/baddtmfcmd.dat differ diff --git a/qndtmf.sh b/qndtmf.sh index b607b96..2ca0e78 100755 --- a/qndtmf.sh +++ b/qndtmf.sh @@ -59,6 +59,7 @@ do GetLetter ${CMD:2:2} if [[ "$LETTER" == "$BAD" ]]; then echo "bad script letter index: '${CMD:2:2}'" + qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD" else qnremote $LOCAL_BAND $LUSER ${LETTER}X >/dev/null 2>&1 fi @@ -84,7 +85,8 @@ do REMOTE_BAND=$LETTER if [[ "$RMT" == "$BAD" ]] || [[ "$REMOTE_NODE" == "$BAD" ]] || [[ "$REMOTE_BAND" == "$BAD" ]]; then - echo "nonsense link command: '$CMD'" + echo "Bad link command: '$CMD'" + qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD" else echo linking local band $LOCAL_BAND to remote node ${RMT}${REMOTE_NODE} $REMOTE_BAND requested by $LUSER qnremote ${LOCAL_BAND} "$LUSER" ${RMT}${REMOTE_NODE}${REMOTE_BAND}L >/dev/null 2>&1 @@ -92,6 +94,7 @@ do fi else echo "Bad command: '$CMD'" + qnvoice $LOCAL_BAND baddtmfcmd.dat "Bad DTMF CMD" fi fi else