Убрал send в чат из user::class. Убрал лишние вызовы.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user