added XLX reflectors

pull/14/head
Tom Early 7 years ago
parent ba3f57fdb2
commit 27bd74516a

@ -49,7 +49,7 @@
#include "QnetConfigure.h" #include "QnetConfigure.h"
#include "QnetGateway.h" #include "QnetGateway.h"
const std::string IRCDDB_VERSION("QnetGateway-9.0"); const std::string IRCDDB_VERSION("QnetGateway-9.1");
extern void dstar_dv_init(); extern void dstar_dv_init();
extern int dstar_dv_decode(const unsigned char *d, int data[3]); extern int dstar_dv_decode(const unsigned char *d, int data[3]);
@ -1365,7 +1365,8 @@ void CQnetGateway::ProcessModem()
printf("MYCALL [%s] failed IRC expression validation\n", temp_radio_user); printf("MYCALL [%s] failed IRC expression validation\n", temp_radio_user);
if ( mycall_valid && if ( mycall_valid &&
memcmp(dsvt.hdr.urcall, "XRF", 3) && // not a reflector memcmp(dsvt.hdr.urcall, "XLX", 3) && // not a reflector
memcmp(dsvt.hdr.urcall, "XRF", 3) &&
memcmp(dsvt.hdr.urcall, "REF", 3) && memcmp(dsvt.hdr.urcall, "REF", 3) &&
memcmp(dsvt.hdr.urcall, "DCS", 3) && memcmp(dsvt.hdr.urcall, "DCS", 3) &&
dsvt.hdr.urcall[0]!=' ' && // must have something dsvt.hdr.urcall[0]!=' ' && // must have something

@ -471,9 +471,10 @@ GatewayMenu () {
/usr/bin/wget http://www.pistar.uk/downloads/DCS_Hosts.txt /usr/bin/wget http://www.pistar.uk/downloads/DCS_Hosts.txt
/bin/rm -f gwys.txt /bin/rm -f gwys.txt
echo "# Downloaded from www.pistar.uk `date`" > gwys.txt echo "# Downloaded from www.pistar.uk `date`" > gwys.txt
awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt awk '$1 ~ /^XLX/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt
awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt
awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt
awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt
/bin/rm -f D{Extra,Plus,CS}_Hosts.txt /bin/rm -f D{Extra,Plus,CS}_Hosts.txt
elif [[ "$ans" == iv* ]]; then elif [[ "$ans" == iv* ]]; then
/bin/rm -f gwys.txt /bin/rm -f gwys.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.