From c39eb5e4a0878d9941d72fbd890182163f8bffc0 Mon Sep 17 00:00:00 2001 From: Jackson Cannon Date: Sun, 19 Mar 2017 22:12:55 -0700 Subject: [PATCH] Fix youtubelive spamming The video type changes after processing --- cinema/gamemode/modules/theater/sh_theater.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cinema/gamemode/modules/theater/sh_theater.lua b/cinema/gamemode/modules/theater/sh_theater.lua index b5b195f..e54fb0f 100644 --- a/cinema/gamemode/modules/theater/sh_theater.lua +++ b/cinema/gamemode/modules/theater/sh_theater.lua @@ -434,7 +434,7 @@ if SERVER then -- Check for duplicate requests again in the case it was requested again while processing for _, video in pairs(self:GetQueue()) do - if video:Type() == VideoType and + if video:Type() == vid:Type() and video:Data() == vid:Data() then -- Place vote for player