aboutsummaryrefslogtreecommitdiffstats
path: root/macros
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2023-01-13 01:31:51 +0000
committergarret <garret@airmail.cc>2023-01-13 01:31:51 +0000
commit12fe89b0b930500e694f5b977f6b4a48f4af8137 (patch)
tree3b2996da0763c06a11888550b9005e73bae60975 /macros
parent51e77db2f3a3a42d51c69f8c2cecbb14a57bf610 (diff)
downloadaegisub-scripts-12fe89b0b930500e694f5b977f6b4a48f4af8137.tar.gz
aegisub-scripts-12fe89b0b930500e694f5b977f6b4a48f4af8137.tar.bz2
aegisub-scripts-12fe89b0b930500e694f5b977f6b4a48f4af8137.zip
shenanigan script: dont crash with non-script effects
oops
Diffstat (limited to 'macros')
-rw-r--r--macros/garret.shenanigans.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/macros/garret.shenanigans.lua b/macros/garret.shenanigans.lua
index 0f8ff3c..bce22fc 100644
--- a/macros/garret.shenanigans.lua
+++ b/macros/garret.shenanigans.lua
@@ -1,7 +1,7 @@
script_name = "Import Shenanigans"
script_description = "imports shenanigans"
script_author = "garret"
-script_version = "0.1.0"
+script_version = "0.1.1"
script_namespace = "garret.shenanigans"
local SHENAN_PATTERN = "shenan ([^;]*)"
@@ -52,7 +52,9 @@ local function main(sub)
aegisub.log(5, i..": has effect: "..line.effect)
local name = line.effect:match(SHENAN_PATTERN)
local shenans = imports[name]
- if shenans ~= "done" then
+ if shenans == nil then
+
+ elseif shenans ~= "done" then
for idx, val in ipairs(shenans) do
sub.insert(i + idx, val)
end