From e393b71dffc97e2aad0bc30f8daa9a4f79de1c28 Mon Sep 17 00:00:00 2001 From: Leshana Date: Mon, 30 Mar 2020 11:27:32 -0400 Subject: [PATCH] Fixes Runtime in randomverbs.dm,134: list index out of bounds --- code/modules/admin/verbs/randomverbs.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/modules/admin/verbs/randomverbs.dm b/code/modules/admin/verbs/randomverbs.dm index baecaaa8a2..73a8e7bc5b 100644 --- a/code/modules/admin/verbs/randomverbs.dm +++ b/code/modules/admin/verbs/randomverbs.dm @@ -131,7 +131,7 @@ return var/msg = input("Message:", text("Enter the text you wish to appear to your target:")) as text - if(!(msg[1] == "<" && msg[length(msg)] == ">")) //You can use HTML but only if the whole thing is HTML. Tries to prevent admin 'accidents'. + if(msg && !(msg[1] == "<" && msg[length(msg)] == ">")) //You can use HTML but only if the whole thing is HTML. Tries to prevent admin 'accidents'. msg = sanitize(msg) if( !msg )