From 951f5b0cd05546a9ed3cb1dd97fd3c640612e57d Mon Sep 17 00:00:00 2001 From: Tiago Danin Date: Sat, 21 Nov 2015 10:14:56 -0300 Subject: [PATCH] Fix bug - Change in location of response: (res.msg) --- plugins/chatter.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/chatter.lua b/plugins/chatter.lua index b841c08..d6c05fa 100755 --- a/plugins/chatter.lua +++ b/plugins/chatter.lua @@ -23,11 +23,11 @@ function PLUGIN.action(msg) local jdat = JSON.decode(jstr) - if string.match(jdat.res, '^I HAVE NO RESPONSE.') or not jdat then - jdat.res = "I don't know what to say to that." + if string.match(jdat.res.msg, '^I HAVE NO RESPONSE.') or not jdat then + jdat.res.msg = "I don't know what to say to that." end - local message = jdat.res + local message = jdat.res.msg -- Let's clean up the response a little. Capitalization & punctuation. filter = {