Skip to content
Snippets Groups Projects
Commit 408d4944 authored by rswindell's avatar rswindell
Browse files

Inserted Tracker1's mod for adding the selected newsgroup name to outbound

"newsgroups" header fields, if not preset.
parent ab5c8f66
No related branches found
No related tags found
No related merge requests found
...@@ -571,6 +571,15 @@ while(client.socket.is_connected && !quit) { ...@@ -571,6 +571,15 @@ while(client.socket.is_connected && !quit) {
if(hdr.newsgroups==undefined) if(hdr.newsgroups==undefined)
hdr.newsgroups = selected.newsgroup; hdr.newsgroups = selected.newsgroup;
else { /* Tracker1's mod for adding the correct newsgroup name */
var ng_found = false; /* Requires sbbs v3.13 */
var ng_list = hdr.newsgroups.split(',');
for(n in ng_list)
if(ng[n].toLowerCase() == selected.newsgroup.toLowerCase())
ng_found = true, break;
if(!ng_found)
hdr.newsgroups = selected.newsgroup + ',' + hdr.newsgroups;
}
if(hdr.from_org==undefined && !hdr.from_net_type) if(hdr.from_org==undefined && !hdr.from_net_type)
hdr.from_org=system.name; hdr.from_org=system.name;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment