diff --git a/bootstrap/bootstrap.php b/bootstrap/bootstrap.php index fbd13f4..9fbd7bf 100644 --- a/bootstrap/bootstrap.php +++ b/bootstrap/bootstrap.php @@ -420,7 +420,7 @@ public function chatStarted($params) } $visitor = array(); - $visitor[] = "├──New chat\n├──Department: " . ((string)$params['chat']->department) . "\n├──ID: " . $params['chat']->id . (isset($params['chat']->chat_variables_array['iwh_field']) ? "\n├──Username: " . $params['chat']->chat_variables_array['iwh_field'] : ''). "\n├──Nick: " . $params['chat']->nick . "\n└──Messages:\n"; + $visitor[] = "├──New chat\n├──Department: " . ((string)$params['chat']->department) . "\n├──ID: " . $params['chat']->id . (isset($params['chat']->chat_variables_array['iwh_field']) ? "\n├──Username: @" . $params['chat']->chat_variables_array['iwh_field'] : ''). "\n├──Nick: " . $params['chat']->nick . "\n└──Messages:\n"; // Collect all chat messages including bot $botMessages = erLhcoreClassModelmsg::getList(array('filterin' => ['user_id' => [0, -2]], 'filter' => array('chat_id' => $params['chat']->id)));