diff --git a/Plugins/Mineplex.ChatSnapManager/web/view.php b/Plugins/Mineplex.ChatSnapManager/web/view.php index d05d2582b..5241d5d72 100644 --- a/Plugins/Mineplex.ChatSnapManager/web/view.php +++ b/Plugins/Mineplex.ChatSnapManager/web/view.php @@ -241,7 +241,7 @@ function removeBadCharacters($input) foreach($messages as $message): $typeId = $message->getType(); $typeDisplayName = Message::$TYPE_DISPLAY_NAMES[$typeId]; - $isPM = strcmp($typeId, Message::TYPE_PM) == 0; + $isPM = $typeId == Message::TYPE_PM; // If this is a PM, then the "-> " suffix will be applied. $involved = $message->getSender()->getUsername() . ($isPM ? " -> " . $message->getRecipients()[0]->getUsername() : "");