- $msg = sprintf("<br><b>%s<br><br>%s</b><br><br>",
- $dt.NICKSERV, xcape(substr($msg, strlen($alarm_check))));
- /* MLANG: "chiudi" */
- $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) {
- $arg = substr($msg, 8);
-
- if (strcasecmp($arg, "isolation") == 0) {
- $flags_old = 0;
- if ($user->stat == 'room' && $user->subst == 'sitdown' &&
- $user->table >= TABLES_AUTH_N) {
- $to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_brisk['listmust'][$G_lang]);
-
- }
- else {
- $user->flags &= ~USER_FLAG_MAP_AUTH;
- $user->flags |= USER_FLAG_ISOLAUTH;
- $to_user = 'list_set(\'isolation\', true, \''.$mlang_brisk['tit_onisol'][$G_lang].'\'); ';
- }
- }
- else if (strcasecmp($arg, "auth") == 0) {
- $flags_old = $user->flags;
- $user->flags &= ~USER_FLAG_MAP_AUTH;
- $user->flags |= USER_FLAG_LISTAUTH;
- $to_user = 'list_set(\'auth\', true, \''.$mlang_brisk['tit_onauth'][$G_lang].'\'); ';
- }
- else {
- $flags_old = $user->flags;
- $user->flags &= ~USER_FLAG_MAP_AUTH;
- $to_user = 'list_set(\'all\', true, \'\'); ';
-
- }
- // if from isolation redraw standup area
- if (($flags_old ^ $user->flags) & USER_FLAG_ISOLAUTH) {
- $to_user .= 'standup_data_old = null; '.$this->standup_content($user);
-
- }
- }
- else if (strcmp($msg, "/authreq") == 0) {
- if ($user->flags & USER_FLAG_AUTH) {
- $to_user = sprintf('authbox(300,200);');
- }
- else {
- /* MLANG: "<b>Per autenticare qualcuno devi a tua volta essere autenticato.</b>", "Il nickname deve contenere almeno una lettera dell\'alfabeto o una cifra.", "Nickname <b>%s</b> già in uso." */
- $to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_brisk['authmust'][$G_lang]);
- }
- }
- else if (strncmp($msg, "/mesgtoadm", 8) == 0) {
- if ($user->flags & USER_FLAG_AUTH) {
- $to_user = sprintf('mesgtoadmbox(500,300);');
- }
- else {
- /* MLANG: "<b>Per inviare un messaggio devi essere autenticato.</b>" */
- $to_user = sprintf('chatt_sub("%s", [2, "%s"],"%s");', $dt, NICKSERV, $mlang_brisk['mesgmust'][$G_lang]);
- }
- }
- else if (strncmp($msg, "/nick ", 6) == 0) {
- log_main("chatt_send BEGIN");