]> git.localhorst.tv Git - alttp.git/blobdiff - app/TwitchBot/TwitchChatBot.php
fix shit
[alttp.git] / app / TwitchBot / TwitchChatBot.php
index f43dba7a35e18ad39b74ed73a3662dcc0528e8cd..831bf5ca4560acf7f09f909079d4dcbea787c324 100644 (file)
@@ -332,7 +332,7 @@ class TwitchChatBot extends TwitchBot {
                $this->getNotes($channel);
                $this->notes[$channel->id]['last_read'] = time();
                ++$this->notes[$channel->id]['read_since_last_write'];
-               if (!$msg->isKnownBot() && !$msg->scanForSpam()) {
+               if (!ChatLog::isKnownBot($msg->nick) && !ChatLog::spammyText($msg->getText())) {
                        $this->notes[$channel->id]['latest_msgs'][] = $msg->getText();
                        if (count($this->notes[$channel->id]['latest_msgs']) > 10) {
                                array_shift($this->notes[$channel->id]['latest_msgs']);