Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
15b75fbc70
@ -35,6 +35,12 @@ function echo:action(msg)
|
|||||||
output = '*Echo:*\n"' .. utilities.md_escape(input) .. '"'
|
output = '*Echo:*\n"' .. utilities.md_escape(input) .. '"'
|
||||||
utilities.send_message(self, msg.chat.id, output, true, nil, true)
|
utilities.send_message(self, msg.chat.id, output, true, nil, true)
|
||||||
return
|
return
|
||||||
|
elseif msg.chat.type == 'group' then
|
||||||
|
local b = 1
|
||||||
|
while b ~= 0 do
|
||||||
|
input = utilities.trim(input)
|
||||||
|
input,b = input:gsub('^/+','')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
utilities.send_message(self, msg.chat.id, input, true, nil, true)
|
utilities.send_message(self, msg.chat.id, input, true, nil, true)
|
||||||
end
|
end
|
||||||
|
@ -730,7 +730,7 @@ function cache_data(plugin, query, data, timeout, typ, hash_field)
|
|||||||
redis:sadd(hash, str)
|
redis:sadd(hash, str)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
redis:hset(hash, hash_field, data)
|
redis:hmset(hash, data)
|
||||||
end
|
end
|
||||||
if timeout then
|
if timeout then
|
||||||
redis:expire(hash, timeout)
|
redis:expire(hash, timeout)
|
||||||
|
Reference in New Issue
Block a user