Commit 97f41c60 authored by deuce's avatar deuce
Browse files

Fix return value of log() in the BBS

parent c0af53f9
......@@ -660,11 +660,11 @@ js_log(JSContext *cx, uintN argc, jsval *arglist)
JS_ValueToInt32(cx,argv[i++],&level);
for(; i<argc; i++) {
JSVALUE_TO_STRING(cx, argv[i], line, NULL);
if(line==NULL) {
JS_RESUMEREQUEST(cx, rc);
if((str=JS_ValueToString(cx, argv[i]))==NULL)
return(JS_FALSE);
JSSTRING_TO_STRING(cx, str, line, NULL);
if(line==NULL)
return(JS_FALSE);
}
rc=JS_SUSPENDREQUEST(cx);
if(sbbs->online==ON_LOCAL) {
if(startup!=NULL && startup->event_lputs!=NULL && level <= startup->log_level) {
......
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