3 #include <common/command/_mod.qh>
5 GENERIC_COMMAND(mx, "Send a matrix command") {
8 strcpy(matrix_user, substring(command, argv_start_index(2), -1));
11 strcpy(matrix_access_token, substring(command, argv_start_index(2), -1));
14 MX_Messages(string_null);
17 MX_Nick(substring(command, argv_start_index(2), -1));
20 string s = substring(command, argv_start_index(2), -1);
21 if (s != matrix_room && matrix_room != "") {
22 MX_Leave(matrix_room);
23 strunzone(matrix_room);
25 matrix_room = strzone(s);
35 MX_Say(substring(command, argv_start_index(2), -1));
38 MX_Leave(matrix_room);
39 matrix_room = string_null;
42 MX_Forget(matrix_room);