Убрал send в чат из user::class. Убрал лишние вызовы.
This commit is contained in:
@@ -3728,11 +3728,13 @@ class Battle
|
||||
);
|
||||
if (isset($a['id'])) {
|
||||
if ($a['eda'] < 1) {
|
||||
$u->send(
|
||||
'', $this->users[$i]['room'], $this->users[$i]['city'], '',
|
||||
$this->users[$i]['login'], '<strong>' . $a['name'] . '</strong> нуждается в еде...',
|
||||
time(), 6, 0, 0, 0, 1
|
||||
);
|
||||
$cmsg = new ChatMessage();
|
||||
$cmsg->setRoom($this->users[$i]['room']);
|
||||
$cmsg->setCity($this->users[$i]['city']);
|
||||
$cmsg->setTo($this->users[$i]['login']);
|
||||
$cmsg->setText('<strong>' . $a['name'] . '</strong> нуждается в еде...');
|
||||
$cmsg->setType(6);
|
||||
$chat->sendMsg($cmsg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user