From 7dd198421ab93ca4fca6847e145ad04e26014ab0 Mon Sep 17 00:00:00 2001 From: dupie Date: Thu, 2 Jul 2015 22:04:00 -0400 Subject: [PATCH] /help for user convenience --- plugins/gImages.lua | 4 ++-- plugins/help.lua | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/gImages.lua b/plugins/gImages.lua index 30e8a59..c3a8764 100644 --- a/plugins/gImages.lua +++ b/plugins/gImages.lua @@ -38,14 +38,14 @@ function PLUGIN.action(msg) local jstr, res = HTTP.request(url) if res ~= 200 then - send_msg(target, 'Connection error.', ok_cb, false) + send_msg(msg, 'Connection error.') return end local jdat = JSON.decode(jstr) if #jdat.responseData.results < 1 then - send_msg(target, 'No results found.', ok_cb, false) + send_msg(msg, 'No results found.') return end diff --git a/plugins/help.lua b/plugins/help.lua index a265683..63750c1 100644 --- a/plugins/help.lua +++ b/plugins/help.lua @@ -7,7 +7,8 @@ PLUGIN.doc = [[ PLUGIN.triggers = { '^!help', - '^!h$' + '^!h$', + '^/help' } function PLUGIN.action(msg)