X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FChatLog.php;h=05c1584e44a306dc47d4abc130fcde3f598370bc;hb=05862d3235a4472abe49ae994bd927943744e451;hp=8564ff097b55abbe7eb12e4072568222bb60c944;hpb=47d864b96b80abb11fdf8e2fdc8920e93916d5b9;p=alttp.git diff --git a/app/Models/ChatLog.php b/app/Models/ChatLog.php index 8564ff0..05c1584 100644 --- a/app/Models/ChatLog.php +++ b/app/Models/ChatLog.php @@ -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);