Changed IP capabilities showing

This commit is contained in:
Michiel Broek 2004-07-22 20:05:31 +00:00
parent dc5f0f3cf9
commit 2650d93014
2 changed files with 8 additions and 3 deletions

View File

@ -1101,9 +1101,9 @@ struct sysconfig {
unsigned xNoITN : 1;
unsigned xNoIFC : 1;
char Phone[21]; /* Default phonenumber */
unsigned long Speed; /* Default linespeed */
char Flags[31]; /* Default EMSI flags */
char IP_Phone[21]; /* TCP/IP phonenumber */
unsigned long IP_Speed; /* TCP/IP linespeed */
char IP_Flags[31]; /* TCP/IP EMSI flags */
int Req_Files; /* Maximum files request */
int Req_MBytes; /* Maximum MBytes request */
char extra5[96];

View File

@ -165,6 +165,11 @@ long Msg_Top(char *template, int language, fidoaddr aka)
fread(&ttyinfohdr, sizeof(ttyinfohdr), 1, fp);
MacroVars("pqrf", "dsss", 0, "", "", "");
if (strlen(CFG.Flags)) {
MacroVars("pqrf", "dsds", 2, CFG.Phone, CFG.Speed, CFG.Flags);
fseek(fi, fileptr, SEEK_SET);
Msg_Macro(fi);
}
while (fread(&ttyinfo, ttyinfohdr.recsize, 1, fp) == 1) {
if (((ttyinfo.type == POTS) || (ttyinfo.type == ISDN)) && ttyinfo.available && strlen(ttyinfo.phone)) {
MacroVars("pqrf", "dsss", ttyinfo.type, ttyinfo.phone, ttyinfo.speed, ttyinfo.flags);