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

Uses Synchronet version and CVS revision for version information.

parent f3513c6f
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
// Synchronet Newsgroup Link/Gateway Module // Synchronet Newsgroup Link/Gateway Module
// $Id$
// Configuration file (in ctrl/newslink.cfg) format: // Configuration file (in ctrl/newslink.cfg) format:
// ;this line is a comment // ;this line is a comment
...@@ -12,11 +14,12 @@ ...@@ -12,11 +14,12 @@
// area subboard (internal code) newsgroup // area subboard (internal code) newsgroup
// ... // ...
const VERSION="1.00 Beta" const REVISION = "$Revision$".split(' ')[1];
printf("Synchronet NewsLink session started (v%s)\r\n", VERSION); printf("Synchronet NewsLink %s session started\r\n", REVISION);
var tearline = format("--- Synchronet NewsLink v%s\r\n",VERSION); var tearline = format("--- Synchronet %s%s-%s NewsLink %s\r\n"
,system.version,system.revision,system.platform,REVISION);
var tagline = format(" * %s - %s - telnet://%s\r\n" var tagline = format(" * %s - %s - telnet://%s\r\n"
,system.name,system.location,system.inetaddr); ,system.name,system.location,system.inetaddr);
var antispam = format("remove-%s-this." var antispam = format("remove-%s-this."
...@@ -322,8 +325,8 @@ for(i in area) { ...@@ -322,8 +325,8 @@ for(i in area) {
+ system.inetaddr + system.inetaddr
+ " [Synchronet " + " [Synchronet "
+ system.version + system.revision + system.version + system.revision
+ "/" + system.platform + "-" + system.platform
+ " NewsLink " + VERSION + " NewsLink " + REVISION
+ "]" + "]"
); );
...@@ -550,7 +553,7 @@ readln(); ...@@ -550,7 +553,7 @@ readln();
delete socket; delete socket;
printf("Synchronet NewsLink session complete (%lu exported, %lu imported)\r\n" printf("Synchronet NewsLink %s session complete (%lu exported, %lu imported)\r\n"
,exported, imported); ,REVISION, exported, imported);
/* End of newslink.js */ /* End of newslink.js */
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
load("sbbsdefs.js"); load("sbbsdefs.js");
const VERSION = "1.00 Beta"; const REVISION = "$Revision$".split(' ')[1];
var debug = false; var debug = false;
var no_anonymous = false; var no_anonymous = false;
...@@ -76,7 +76,8 @@ var msgbase=null; ...@@ -76,7 +76,8 @@ var msgbase=null;
var selected=null; var selected=null;
var current_article=0; var current_article=0;
writeln(format("200 %s News (Synchronet NNTP Service v%s)",system.name,VERSION)); writeln(format("200 %s News (Synchronet %s%s-%s NNTP Service %s)"
,system.name,system.version,system.revision,system.platform,REVISION));
if(!no_anonymous) if(!no_anonymous)
login("guest"); // Login as guest/anonymous by default login("guest"); // Login as guest/anonymous by default
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment