]> mop.ddnsfree.com - git repositories - brisk.git/commitdiff
use preferences for listen management
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Fri, 17 Apr 2020 09:19:30 +0000 (11:19 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Fri, 17 Apr 2020 09:19:30 +0000 (11:19 +0200)
web/Obj/brisk.phh
web/index.php
web/room.js

index 9c40d56c1eb9dae684340876c1ed94ca31facd21..c87965a9cf51f136ef6a1382ecc0525a3d792bbf 100644 (file)
@@ -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) {
index 3ac428a27b9a260847abf42d70000319635fb2a7..269b1fcb6c4148bfc392ca382717494f46cabc9f 100644 (file)
@@ -1052,7 +1052,6 @@ var g_tables_appr_n = <? echo TABLES_APPR_N; ?>;
 var g_tables_auth_n = <? echo TABLES_AUTH_N; ?>;
 var g_tables_cert_n = <? echo 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 = <? echo TABLES_AUTH_N; ?>;
    var g_tables_cert_n = <? echo 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;
index f3a5d885e2485e8160dd4a65720685498bd84403..7085be4068d54b301ff9dfdc166692564f4699ba 100644 (file)
@@ -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++) {