]> git.localhorst.tv Git - alttp.git/commitdiff
fix end with emoteless token
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Apr 2024 20:06:34 +0000 (22:06 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Apr 2024 20:06:34 +0000 (22:06 +0200)
app/TwitchBot/TokenizedMessage.php

index 46f4a4495f1758816ac03c214b7843eda0bbf2ce..e35299803c4753f369c5942c3d3c914b05f5208e 100644 (file)
@@ -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) {