X-Git-Url: https://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;h=7262ef4884fd17f93da93045d25b9bb9e2fd40b5;hb=f7068bc71e92a6290b6efcd8c10771aab8bc3449;hp=e3abaa9d6cd0832bdefc93d239700df776d80043;hpb=a28328a1aa1ece8ffdaf65150936161d0ba207f2;p=brisk.git diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index e3abaa9..7262ef4 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1416,9 +1416,9 @@ class Brisk $ret = sprintf('gst.st = %d; ', $user_step); - $prefs = Client_prefs::from_user($user); - $ret .= sprintf('prefs_load(\'%s\', false, false);', json_encode($prefs)); - + if ($user->is_auth()) { + $ret .= sprintf('g_prefsn.load(\'%s\');', json_encode($user->prefsn_get())); + } if(false) { if ($user->flags & USER_FLAG_ISOLAUTH) { $ret .= 'list_set(\'isolation\', false, \''.$mlang_brisk['tit_onisol'][$G_lang].'\' ); '; @@ -2152,6 +2152,20 @@ class Brisk echo $this->info_show($user, urldecode($info_user), $dt); } while(0); } + else if (strncmp($msg, "/prefsn", 7) == 0) { + do { + if (! $user->is_auth()) { + if ($mlang_indwr) { + $to_user = nickserv_msg($dt, $mlang_indwr['info_auth'][$G_lang]); + } + else { + $to_user = nickserv_msg($dt, "error"); + } + break; + } + echo $this->prefsn_show($user, $dt); + } while(0); + } else if (strncmp($msg, "/st ", 4) == 0) { log_main("chatt_send BEGIN");