Skip to content

Commit

Permalink
Merge pull request #49 from mysubcult/patch-5
Browse files Browse the repository at this point in the history
Update bootstrap.php
  • Loading branch information
remdex authored Oct 5, 2023
2 parents c02693c + 0646baa commit f7f2a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down

0 comments on commit f7f2a70

Please sign in to comment.