Skip to content

Commit

Permalink
Commands should not be executed in whisper mode
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Jan 26, 2022
1 parent 9763637 commit 3c6d625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lhc_web/design/defaulttheme/tpl/lhwebhooks/edit.tpl.php
@@ -1,4 +1,4 @@
<h1 ng-non-bindable><?php echo htmlspecialchars($item->name)?></h1>
<h1 ng-non-bindable><?php echo htmlspecialchars((string)$item->name)?></h1>

<?php if (isset($errors)) : ?>
<?php include(erLhcoreClassDesign::designtpl('lhkernel/validation_error.tpl.php'));?>
Expand Down
2 changes: 1 addition & 1 deletion lhc_web/modules/lhchat/addmsgadmin.php
Expand Up @@ -33,7 +33,7 @@
$returnBody = '';
$customArgs = array();

if (strpos($msgText, '!') === 0) {
if (!isset($_POST['whisper']) && strpos($msgText, '!') === 0) {
$statusCommand = erLhcoreClassChatCommand::processCommand(array('user' => $userData, 'msg' => $msgText, 'chat' => & $Chat));
if ($statusCommand['processed'] === true) {
$messageUserId = -1; // Message was processed set as internal message
Expand Down

0 comments on commit 3c6d625

Please sign in to comment.