From: Matteo Nastasi Date: Fri, 17 Apr 2020 09:19:30 +0000 (+0200) Subject: use preferences for listen management X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=9fb12c6a30ea258f78dd53dce4821144f41c48ca;p=brisk.git use preferences for listen management --- diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 9c40d56..c87965a 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -2028,7 +2028,7 @@ class Brisk $to_all = show_notify($msg, 0, $mlang_brisk['btn_close'][$G_lang], 400, 120); } while (0); } // /alarm chat command - else if (strncmp($msg, "/listen ", 8) == 0) { + else if (FALSE && strncmp($msg, "/listen ", 8) == 0) { $arg = substr($msg, 8); if (strcasecmp($arg, "isolation") == 0) { diff --git a/web/index.php b/web/index.php index 3ac428a..269b1fc 100644 --- a/web/index.php +++ b/web/index.php @@ -1052,7 +1052,6 @@ var g_tables_appr_n = ; var g_tables_auth_n = ; var g_tables_cert_n = ; var g_prefs, g_prefs_new = null; -var g_listen; var g_jukebox = null; var g_is_spawn = 0; var g_nd = null; @@ -1222,7 +1221,6 @@ cookie_law(null); var g_tables_auth_n = ; var g_tables_cert_n = ; var g_prefs, g_prefs_new = null; - var g_listen; var g_is_spawn = 0; var g_jukebox = null; var g_imgct = 0; diff --git a/web/room.js b/web/room.js index f3a5d88..7085be4 100644 --- a/web/room.js +++ b/web/room.js @@ -274,7 +274,7 @@ function j_stand_cont(ddata) var data; - if (g_listen & l_list_isol) { + if (g_prefs.listen & l_list_isol) { data = new Array(); for (i = 0, ii = 0 ; ii < ddata.length ; ii++) {