From 6d1b4aa9f3015209ec7867140eef9a58f5c228cf Mon Sep 17 00:00:00 2001 From: Matthew Cech Date: Sat, 20 Apr 2019 23:42:11 -0700 Subject: [PATCH] = Fixed conditional --- plugins/forbiddenword.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/forbiddenword.lua b/plugins/forbiddenword.lua index a8eb5e9..8d81326 100644 --- a/plugins/forbiddenword.lua +++ b/plugins/forbiddenword.lua @@ -1,9 +1,11 @@ local time = os.time(); + function plugin(message) - if(message.match("purple"))then + if(string.match(message, "purple"))then local response = os.time() - time; time = os.time(); return response; end + return nil; end \ No newline at end of file