From 2e0a3e8b06368ff9949a166b5554a23ce1c1c4a8 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Wed, 7 Mar 2012 22:10:19 +0000
Subject: [PATCH] strengthened the stiffness of security. got firm on
 hardening. erected a new parameter for the ident command. wood.

---
 exec/load/json-client.js | 21 +++------------------
 1 file changed, 3 insertions(+), 18 deletions(-)

diff --git a/exec/load/json-client.js b/exec/load/json-client.js
index 3fead1857e..8e11825f73 100644
--- a/exec/load/json-client.js
+++ b/exec/load/json-client.js
@@ -36,8 +36,7 @@ load("json-sock.js");
 	-	JSONClient.receive();
 	-	JSONClient.wait();
 	
-	optional arguments: if these are not supplied, 
-	the client will connect to the default server (bbs.thebrokenbubble.com)
+	arguments: 
 	
 	-	argv[0] = serverAddr;
 	-	argv[1] = serverPort;
@@ -273,10 +272,9 @@ function JSONClient(serverAddr,serverPort) {
 	}
 	
 	/* identify this client as a bbs user */
-	this.ident=function(username,pw) {
+	this.ident=function(scope,username,pw) {
 		pw = md5_calc(pw.toUpperCase(),true);
-		this.send("ADMIN","CMD",{
-            oper:"IDENT",
+		this.send(scope,"IDENT",{
             username:username,
 			pw:pw
         });
@@ -303,16 +301,3 @@ function JSONClient(serverAddr,serverPort) {
 	this.connect();
 	log(LOG_INFO,"JSON client initialized (v" + this.VERSION + ")");
 };
-
-
-
-
-
-
-
-
-
-
-
-
-
-- 
GitLab