From: Daniel Karbach Date: Fri, 12 Apr 2024 20:06:34 +0000 (+0200) Subject: fix end with emoteless token X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=b58fe6e53fa99e2389519bad8a6ada07597e8dfd;p=alttp.git fix end with emoteless token --- diff --git a/app/TwitchBot/TokenizedMessage.php b/app/TwitchBot/TokenizedMessage.php index 46f4a44..e352998 100644 --- a/app/TwitchBot/TokenizedMessage.php +++ b/app/TwitchBot/TokenizedMessage.php @@ -68,7 +68,7 @@ class TokenizedMessage { } public function endsWithEmotelessToken($text) { - return !empty($this->emoteless_tokens) && $this->tokens[count($this->emoteless_tokens) - 1] == $text; + return !empty($this->emoteless_tokens) && $this->emoteless_tokens[count($this->emoteless_tokens) - 1] == $text; } public function endsWithRaw($text) {