]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Channel.php
try to respond more appropriately
[alttp.git] / app / Models / Channel.php
index 8af6a7d43e201e191651a4ab9b28fc7c11642ec5..8045a4194fa529561ba6a091c0aa7770beb18dce 100644 (file)
@@ -32,6 +32,11 @@ class Channel extends Model {
        }
 
        public function randomOfClass($class) {
+               if (is_array($class)) {
+                       return $this->queryChatlog()
+                               ->whereIn('classification', $class)
+                               ->first();
+               }
                return $this->queryChatlog()
                        ->where('classification', '=', $class)
                        ->first();