Commit 240518f4 authored by Andrew Price's avatar Andrew Price
Browse files

Retrieve the chatmode string from the correct json object

parent 837815a0
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -228,7 +228,7 @@ static duk_ret_t js_wholist(duk_context *cx)
		duk_push_int(cx, now - json_getint(entry, "idletime"));
		duk_put_prop_string(cx, obj_idx, "idle");
		/* chat modes */
		duk_push_string(cx, json_getstring(entry, "chatmode"));
		duk_push_string(cx, json_getstring(perms, "chatmode"));
		duk_put_prop_string(cx, obj_idx, "chatmodes");
		/* protection level */
		prot = json_getstring(perms, "protection");