Commit 8432d5c9 authored by rswindell's avatar rswindell
Browse files

Merged 79's rlogin_gate() with telnet_gate().

parent 651f1a8a
...@@ -2626,8 +2626,8 @@ js_rlogin_gate(JSContext *cx, uintN argc, jsval *arglist) ...@@ -2626,8 +2626,8 @@ js_rlogin_gate(JSContext *cx, uintN argc, jsval *arglist)
{ {
jsval *argv=JS_ARGV(cx, arglist); jsval *argv=JS_ARGV(cx, arglist);
char* addr; char* addr;
char* alias; char* alias=NULL;
char* pass; char* pass=NULL;
bool fail; bool fail;
int32 mode = 0; int32 mode = 0;
JSString* js_addr; JSString* js_addr;
...@@ -2686,7 +2686,7 @@ js_rlogin_gate(JSContext *cx, uintN argc, jsval *arglist) ...@@ -2686,7 +2686,7 @@ js_rlogin_gate(JSContext *cx, uintN argc, jsval *arglist)
} }
rc=JS_SUSPENDREQUEST(cx); rc=JS_SUSPENDREQUEST(cx);
sbbs->rlogin_gate(addr,alias,pass,mode); sbbs->telnet_gate(addr,mode|TG_RLOGIN,alias,pass);
free(addr); free(addr);
free(alias); free(alias);
free(pass); free(pass);
...@@ -3760,9 +3760,9 @@ static jsSyncMethodSpec js_bbs_functions[] = { ...@@ -3760,9 +3760,9 @@ static jsSyncMethodSpec js_bbs_functions[] = {
,JSDOCSTR("external telnet/rlogin gateway (see <tt>TG_*</tt> in <tt>sbbsdefs.js</tt> for valid <i>mode</i> bits)") ,JSDOCSTR("external telnet/rlogin gateway (see <tt>TG_*</tt> in <tt>sbbsdefs.js</tt> for valid <i>mode</i> bits)")
,310 ,310
}, },
{"rlogin_gate", js_rlogin_gate, 1, JSTYPE_VOID, JSDOCSTR("address [user=<tt>user.alias</tt>,pass=<tt>user.pass</tt>,mode=<tt>TG_NONE</tt>]") {"rlogin_gate", js_rlogin_gate, 1, JSTYPE_VOID, JSDOCSTR("address [,user=<tt>user.alias</tt>,pass=<tt>user.pass</tt>,mode=<tt>TG_NONE</tt>]")
,JSDOCSTR("external rlogin gateway (see <tt>TG_*</tt> in <tt>sbbsdefs.js</tt> for valid <i>mode</i> bits)") ,JSDOCSTR("external RLogin gateway (see <tt>TG_*</tt> in <tt>sbbsdefs.js</tt> for valid <i>mode</i> bits)")
,310 ,316
}, },
/* security */ /* security */
{"check_syspass", js_chksyspass, 0, JSTYPE_BOOLEAN, JSDOCSTR("") {"check_syspass", js_chksyspass, 0, JSTYPE_BOOLEAN, JSDOCSTR("")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment