+ else if (strncmp($msg, "/alarm ", 7) == 0) {
+ if (strncmp($msg, "/alarm to ", 10) == 0) {
+ $sp_pos = strpos($msg, " ", 10);
+ $target = substr($msg, 10, $sp_pos - 10);
+ $alarm_check = "/alarm to ".$target." ".$G_alarm_passwd." ";
+ }
+ else {
+ $target = "";
+ $alarm_check = "/alarm ".$G_alarm_passwd." ";
+ }
+ do {
+ if (strncmp($msg, $alarm_check, strlen($alarm_check)) != 0) {
+ /* MLANG: "<br>La password digitata non è corretta.<br><br>" */
+ $msg = $mlang_brisk['alarpass'][$G_lang];
+ $to_user = show_notify($msg, 0, $mlang_brisk['btn_close'][$G_lang], 400, 100);
+
+ break;
+ }
+
+ /* MLANG: "Alarm <b>%s</b> inviato a <b>%s</b>." */
+ $prestr = sprintf($mlang_brisk['alarret'][$G_lang], xcape(substr($msg, strlen($alarm_check))),
+ ($target == "" ? $mlang_brisk['tit_all'][$G_lang] : xcape($target)) );
+ $to_user = nickserv_msg($dt, $prestr);
+
+ $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 (FALSE && 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 = nickserv_msg($dt, $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 {
+ $flags_old = $user->flags;
+ $user->flags &= ~USER_FLAG_MAP_AUTH;
+ $to_user = 'list_set(\'all\', true, \'\'); ';