Go to the source code of this file.
◆ MX_Handle()
Definition at line 3 of file matrix.qc.
References json_get(), print(), stof(), and strcat().
Referenced by MX_Messages_(), and MX_Sync_().
8 string arr =
strcat(ancestor,
".content.user_ids");
9 for (
int i = 0, n =
stof(
json_get(buf, sprintf(
"%s.length", arr))); i < n; ++i) {
10 string s =
json_get(buf, sprintf(
"%s.%d", arr, i));
11 print(
"\{1}", s,
" is typing...\n");
15 case "m.room.message": {
16 string msgtype =
json_get(buf,
strcat(ancestor,
".content.msgtype"));
21 if (body)
print(
"\{1}", sender,
": ", body,
"\n");
ERASEABLE string json_get(int buf, string key)
spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 spree_cen s1 f1 s1 strcat(_("Level %s: "), "^BG%s\3\, _("^BGPress ^F2%s^BG to enter the game"))