- Change in location of response: (res.msg)
This commit is contained in:
Tiago Danin 2015-11-21 10:14:56 -03:00
parent b7aadc5247
commit 951f5b0cd0

View File

@ -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 = {