diff --git a/modules_data/moder/unusedeletinfo.php b/modules_data/moder/unusedeletinfo.php index 84f65c63..24e1de75 100644 --- a/modules_data/moder/unusedeletinfo.php +++ b/modules_data/moder/unusedeletinfo.php @@ -22,11 +22,11 @@ if ($uu['info_delete'] <= time()) { (new \Moderation\Moderation($uu['id']))->undepersonalize(); +$uer = "Персонаж {$uu['login']} больше не под подозрением."; + $cmsg = new ChatMessage(); $cmsg->setRoom($u->info['room']); -$cmsg->setText("[img[items/uncui.gif]] Персонаж {$uu['login']} больше не под подозрением."); +$cmsg->setText("[img[items/uncui.gif]] $uer"); $cmsg->setType(6); $cmsg->setTypeTime(1); (new Chat())->sendMsg($cmsg); - -$uer = 'Вы успешно сняли заклятие обезличивания с персонажа "' . $uu['login'] . '".
'; diff --git a/modules_data/moder/use_carcer.php b/modules_data/moder/use_carcer.php index cdf96578..9cd5504c 100644 --- a/modules_data/moder/use_carcer.php +++ b/modules_data/moder/use_carcer.php @@ -20,12 +20,12 @@ $time->modify("+ {$_POST['time']} day"); (new \Moderation\Moderation($uu['id']))->prison($time); \Core\Db::sql('delete from dungeon_zv where uid = ?', [$uu['id']]); // Удаляем заявки в пещеры. -$rtxt = "Персонаж {$uu['login']} был отправлен в тюрьму до {$time->format('d M Y H:i')}."; +$uer = "Персонаж {$uu['login']} был отправлен в тюрьму до {$time->format('d M Y H:i')}."; +unset($time); + $cmsg = new ChatMessage(); $cmsg->setRoom($u->info['room']); -$cmsg->setText("[img[items/jail.gif]] $rtxt"); +$cmsg->setText("[img[items/jail.gif]] $uer"); $cmsg->setType(6); $cmsg->setTypeTime(1); (new Chat())->sendMsg($cmsg); - -$uer = $rtxt; diff --git a/modules_data/moder/useban.php b/modules_data/moder/useban.php index 52f810b2..22312fba 100644 --- a/modules_data/moder/useban.php +++ b/modules_data/moder/useban.php @@ -30,13 +30,11 @@ if (!empty($uu['battle'])) { \Core\Db::sql('update users left join stats on users.id = stats.id set battle = default, regHP = unix_timestamp(), team = 0, battle_yron = 0, battle_exp = 0 where users.id = ?', [$uu['id']]); } -$rtxt = "Персонаж {$uu['login']} заблокирован."; +$uer = "Персонаж {$uu['login']} заблокирован."; $cmsg = new ChatMessage(); $cmsg->setRoom($u->info['room']); -$cmsg->setText("[img[items/pal_button6.gif]] $rtxt"); +$cmsg->setText("[img[items/pal_button6.gif]] $uer"); $cmsg->setType(6); $cmsg->setTypeTime(1); (new Chat())->sendMsg($cmsg); - -$uer = $rtxt; diff --git a/modules_data/moder/usedeletinfo.php b/modules_data/moder/usedeletinfo.php index 10b58d32..8be98f15 100644 --- a/modules_data/moder/usedeletinfo.php +++ b/modules_data/moder/usedeletinfo.php @@ -24,14 +24,12 @@ $time = new DateTime(); $time->modify("+ {$_POST['time']} day"); (new \Moderation\Moderation($uu['id']))->depersonalize($time); -$rtxt = "Персонаж {$uu['login']} под подозрением до {$time->format('d M Y H:i')}."; +$uer = "Персонаж {$uu['login']} под подозрением до {$time->format('d M Y H:i')}."; unset($time); $cmsg = new ChatMessage(); $cmsg->setRoom($u->info['room']); -$cmsg->setText("[img[items/cui.gif]] $rtxt"); +$cmsg->setText("[img[items/cui.gif]] $uer"); $cmsg->setType(6); $cmsg->setTypeTime(1); (new Chat())->sendMsg($cmsg); - -$uer = $rtxt;