3 #include "cl_player.qh"
5 #include <lib/matrix/matrix.qh>
7 var void MX_Handle(int buf, string ancestor)
9 string type = json_get(buf, strcat(ancestor, ".type"));
11 case "m.room.message": {
12 string msgtype = json_get(buf, strcat(ancestor, ".content.msgtype"));
15 string sender = json_get(buf, strcat(ancestor, ".sender"));
16 string body = json_get(buf, strcat(ancestor, ".content.body"));
17 if (sender != matrix_user && body) Say(NULL, false, NULL, body, false);