[mw-devel] [Git][arthur/mw][master] Retrieve the chatmode string from the correct json object
Andrew Price
welshbyte at sucs.org
Mon Jul 31 19:50:30 BST 2017
Andrew Price pushed to branch master at Justin Mitchell / mw
Commits:
240518f4 by Andrew Price at 2017-07-31T19:49:36+01:00
Retrieve the chatmode string from the correct json object
- - - - -
1 changed file:
- src/client/js-duk.c
Changes:
=====================================
src/client/js-duk.c
=====================================
--- a/src/client/js-duk.c
+++ b/src/client/js-duk.c
@@ -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");
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/240518f4e8601c5021e3efbaf953fac82abf7cdd
---
View it on GitLab: https://projects.sucs.org/arthur/mw/commit/240518f4e8601c5021e3efbaf953fac82abf7cdd
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/mw-devel/attachments/20170731/dc065463/attachment.html>
More information about the mw-devel
mailing list