Убрал send в чат из user::class. Убрал лишние вызовы.

This commit is contained in:
2023-02-02 17:39:42 +02:00
parent a9dc9af61e
commit 253a8dca63
10 changed files with 622 additions and 586 deletions
+7 -4
View File
@@ -2506,10 +2506,13 @@ class Magic
}
} else {
$u->send(
'', $u->info['room'], $u->info['city'], '', $u->info['login'],
'<b>' . $a['name'] . '</b> нуждается в еде...', time(), 6, 0, 0, 0, 1
);
$cmsg = new ChatMessage();
$cmsg->setRoom($u->info['room']);
$cmsg->setCity($u->info['city']);
$cmsg->setTo($u->info['login']);
$cmsg->setText('<strong>' . $a['name'] . '</strong> нуждается в еде...');
$cmsg->setType(6);
(new Chat())->sendMsg($cmsg);
}
}
}