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

Void js methods now return JSVAL_VOID.

Renamed logkey/str to log_key/str.
parent 0ea2e53f
No related branches found
No related tags found
No related merge requests found
......@@ -334,7 +334,8 @@ js_menu(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
return(JS_FALSE);
sbbs->menu(JS_GetStringBytes(str));
*rval=JSVAL_VOID;
return(JS_TRUE);
}
......@@ -347,6 +348,7 @@ js_hangup(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval)
return(JS_FALSE);
sbbs->hangup();
*rval=JSVAL_VOID;
return(JS_TRUE);
}
......@@ -434,7 +436,6 @@ js_chksyspass(JSContext *cx, JSObject *obj, uintN argc, jsval *argv, jsval *rval
return(JS_FALSE);
*rval = BOOLEAN_TO_JSVAL(sbbs->chksyspass());
return(JS_TRUE);
}
......@@ -839,8 +840,8 @@ static JSFunctionSpec js_bbs_functions[] = {
{"hangup", js_hangup, 0}, // hangup immediately
/* menuing */
{"menu", js_menu, 1}, // show menu
{"logkey", js_logkey, 1}, // log key to node.log (comma optional)
{"logstr", js_logstr, 1}, // log string to node.log
{"log_key", js_logkey, 1}, // log key to node.log (comma optional)
{"log_str", js_logstr, 1}, // log string to node.log
/* users */
{"finduser", js_finduser, 1}, // find user (partial name support)
{"trashcan", js_trashcan, 2}, // search file for psuedo-regexp
......
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