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

Uses new js_CreateUserObjects() function.

parent 0c491b00
No related branches found
No related tags found
No related merge requests found
......@@ -756,17 +756,8 @@ void sbbs_t::js_create_user_objects(void)
if(js_cx==NULL)
return;
/* user object */
if(js_CreateUserObject(js_cx, js_glob, &cfg, "user", useron.number)==NULL)
lprintf("!JavaScript ERROR creating user object");
/* file_area object */
if(js_CreateFileAreaObject(js_cx, js_glob, &cfg, &useron, "")==NULL)
lprintf("!JavaScript ERROR creating file_area object");
/* msg_area object */
if(js_CreateMsgAreaObject(js_cx, js_glob, &cfg, &useron, subscan)==NULL)
lprintf("!JavaScript ERROR creating msg_area object");
if(js_CreateUserObjects(js_cx, js_glob, &cfg, &useron, NULL, subscan)==NULL)
lprintf("!JavaScript ERROR creating user objects");
}
#endif /* JAVASCRIPT */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment