Automatically ad FTN address to orgin line on fido conferences
This commit is contained in:
parent
254d73a72e
commit
73f227e541
14
mail_menu.c
14
mail_menu.c
@ -363,8 +363,20 @@ char *external_editor(int socket, struct user_record *user, char *to, char *from
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (conf.mail_conferences[user->cur_mail_conf]->nettype == NETWORK_FIDO) {
|
||||||
|
if (conf.mail_conferences[user->cur_mail_conf]->fidoaddr->point == 0) {
|
||||||
|
snprintf(buffer, 256, "\r--- MagickaBBS v%d.%d (%s)\r * Origin: %s (%d:%d/%d)\r", VERSION_MAJOR, VERSION_MINOR, VERSION_STR, tagline, conf.mail_conferences[user->cur_mail_conf]->fidoaddr->zone,
|
||||||
|
conf.mail_conferences[user->cur_mail_conf]->fidoaddr->net,
|
||||||
|
conf.mail_conferences[user->cur_mail_conf]->fidoaddr->node);
|
||||||
|
} else {
|
||||||
|
snprintf(buffer, 256, "\r--- MagickaBBS v%d.%d (%s)\r * Origin: %s (%d:%d/%d.%d)\r", VERSION_MAJOR, VERSION_MINOR, VERSION_STR, tagline, conf.mail_conferences[user->cur_mail_conf]->fidoaddr->zone,
|
||||||
|
conf.mail_conferences[user->cur_mail_conf]->fidoaddr->net,
|
||||||
|
conf.mail_conferences[user->cur_mail_conf]->fidoaddr->node,
|
||||||
|
conf.mail_conferences[user->cur_mail_conf]->fidoaddr->point);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
snprintf(buffer, 256, "\r--- MagickaBBS v%d.%d (%s)\r * Origin: %s \r", VERSION_MAJOR, VERSION_MINOR, VERSION_STR, tagline);
|
snprintf(buffer, 256, "\r--- MagickaBBS v%d.%d (%s)\r * Origin: %s \r", VERSION_MAJOR, VERSION_MINOR, VERSION_STR, tagline);
|
||||||
|
}
|
||||||
body2 = (char *)malloc(totlen + 2 + strlen(buffer));
|
body2 = (char *)malloc(totlen + 2 + strlen(buffer));
|
||||||
|
|
||||||
j = 0;
|
j = 0;
|
||||||
|
Reference in New Issue
Block a user