From 136c939701bb3cdf1bf2c7137ba03a9a36428de2 Mon Sep 17 00:00:00 2001 From: Pickle <111543470+PickleModifications@users.noreply.github.com> Date: Sat, 3 Dec 2022 14:02:51 -0500 Subject: [PATCH] Update config.lua --- config.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/config.lua b/config.lua index 138aab2..a4b0fa3 100644 --- a/config.lua +++ b/config.lua @@ -27,9 +27,11 @@ Config.BannedWords = { Config.Events = { -- Events for approving broadcasts / interactions (due to popular demand). ScreenInteract = function(source, data, key, value, cb) -- cb() to approve. - for i=1, #Config.BannedWords do - if string.find(value.url, Config.BannedWords) then - return + if value.url then + for i=1, #Config.BannedWords do + if string.find(value.url, Config.BannedWords[i]) then + return + end end end cb() @@ -37,4 +39,4 @@ Config.Events = { -- Events for approving broadcasts / interactions (due to popu Broadcast = function(source, data, cb) -- cb() to approve. cb() end, -} \ No newline at end of file +}