Skip to content
Snippets Groups Projects
Commit b0c93ebb authored by deuce's avatar deuce
Browse files

Always put the JSBinkP revision in the VER text, if no name/ver is specified

to the constructor, use "UnknownScript/0.0".
parent bc8c0be7
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ function BinkP(name_ver, inbound, rx_callback)
var addr;
if (name_ver === undefined)
name_ver = 'JSBinkP/'+("$Revision$".split(' ')[1]);
name_ver = 'UnknownScript/0.0';
this.name_ver = name_ver;
if (inbound === undefined)
......@@ -221,7 +221,7 @@ BinkP.prototype.connect = function(addr, password, port)
this.sendCmd(this.command.M_NUL, "LOC "+this.system_location);
this.sendCmd(this.command.M_NUL, "NDL 115200,TCP,BINKP");
this.sendCmd(this.command.M_NUL, "TIME "+new Date().toString());
this.sendCmd(this.command.M_NUL, "VER "+this.name_ver+'/'+system.platform+" binkp/1.1");
this.sendCmd(this.command.M_NUL, "VER "+this.name_ver+",JSBinkP/"+("$Revision$".split(' ')[1])+'/'+system.platform+" binkp/1.1");
this.sendCmd(this.command.M_ADR, this.addr_list.join(' '));
while(!js.terminated && this.remote_addrs === undefined) {
......
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