Skip to content
Snippets Groups Projects
Commit 461b512b authored by rswindell's avatar rswindell
Browse files

Uses "newsgroups" header field value as default "to" header field value.

parent 23c8ed48
No related branches found
No related tags found
No related merge requests found
......@@ -447,7 +447,7 @@ while(client.socket.is_connected) {
}
writeln("340 send article to be posted. End with <CR-LF>.<CR-LF>");
var hdr={ from: "", to: "", subject: "", id: "" };
var hdr={ from: "", subject: "", id: "" };
if(!(user.security.restrictions&(UFLAG_G|UFLAG_Q))) { // !Guest and !Network Node
hdr.from=user.alias;
hdr.from_ext=user.number;
......@@ -520,10 +520,12 @@ while(client.socket.is_connected) {
break;
case "references":
hdr.reply_id=data;
if(!hdr.to)
if(hdr.to==undefined)
hdr.to=getReferenceTo(data);
break;
case "newsgroups":
if(hdr.to==undefined)
hdr.to=data;
newsgroups=data.split(',');
break;
case "x-ftn-pid":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment