]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/ChatLog.php
more spam
[alttp.git] / app / Models / ChatLog.php
index 8564ff097b55abbe7eb12e4072568222bb60c944..05c1584e44a306dc47d4abc130fcde3f598370bc 100644 (file)
@@ -162,11 +162,17 @@ class ChatLog extends Model {
                if (strpos($text, 'view ers') !== false) {
                        return true;
                }
+               if (strpos($text, 'vielen Dank für den Raid') !== false) {
+                       return true;
+               }
+               if (strpos($text, 'Willkommen auf Starbase 47') !== false) {
+                       return true;
+               }
                return false;
        }
 
        protected function scanForSpam() {
-               if (is_numeric($text)) {
+               if (is_numeric($this->text_content)) {
                        return true;
                }
                return static::spammyText($this->text_content);