Merge pull request #12 from TiagoDanin/patch-3
Fix bug - Plugin chatter.lua Fixed this locally a while ago, forgot to push it.
This commit is contained in:
commit
3bd9d5302e
@ -23,11 +23,11 @@ function PLUGIN.action(msg)
|
|||||||
|
|
||||||
local jdat = JSON.decode(jstr)
|
local jdat = JSON.decode(jstr)
|
||||||
|
|
||||||
if string.match(jdat.res, '^I HAVE NO RESPONSE.') or not jdat then
|
if string.match(jdat.res.msg, '^I HAVE NO RESPONSE.') or not jdat then
|
||||||
jdat.res = "I don't know what to say to that."
|
jdat.res.msg = "I don't know what to say to that."
|
||||||
end
|
end
|
||||||
|
|
||||||
local message = jdat.res
|
local message = jdat.res.msg
|
||||||
|
|
||||||
-- Let's clean up the response a little. Capitalization & punctuation.
|
-- Let's clean up the response a little. Capitalization & punctuation.
|
||||||
filter = {
|
filter = {
|
||||||
|
Reference in New Issue
Block a user