]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Channel.php
protocol chat bot messages
[alttp.git] / app / Models / Channel.php
index 5c7ae70c0e95ebfec714052becfc28580dc1f354..46155cda710d1c5d0de970a692d84a8fce889924 100644 (file)
@@ -32,10 +32,9 @@ class Channel extends Model {
        }
 
        public function randomOfClass($class) {
-               $line = $this->queryChatlog()
+               return $this->queryChatlog()
                        ->where('classification', '=', $class)
                        ->first();
-               return $line ? $line->text_content : '';
        }
 
        public function queryChatlog() {