Loading src/client/js-duk.c +4 −3 Original line number Diff line number Diff line Loading @@ -177,9 +177,10 @@ static int js_push_ipcmsg_event(ipc_message_t *msg) duk_put_prop_string(ctx, idx, "ipc_type"); js_push_username(msg->head.src); duk_put_prop_string(ctx, idx, "from_name"); if (msg->head.type == IPC_SAYTOUSER) { js_push_username(msg->head.dst); duk_put_prop_string(ctx, idx, "to_name"); } duk_push_string(ctx, json_getstring(json, "type")); duk_put_prop_string(ctx, idx, "type"); duk_push_string(ctx, json_getstring(json, "text")); Loading Loading
src/client/js-duk.c +4 −3 Original line number Diff line number Diff line Loading @@ -177,9 +177,10 @@ static int js_push_ipcmsg_event(ipc_message_t *msg) duk_put_prop_string(ctx, idx, "ipc_type"); js_push_username(msg->head.src); duk_put_prop_string(ctx, idx, "from_name"); if (msg->head.type == IPC_SAYTOUSER) { js_push_username(msg->head.dst); duk_put_prop_string(ctx, idx, "to_name"); } duk_push_string(ctx, json_getstring(json, "type")); duk_put_prop_string(ctx, idx, "type"); duk_push_string(ctx, json_getstring(json, "text")); Loading