]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TokenizedMessage.php
fix end with emoteless token
[alttp.git] / 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) {