Version 3.8

Relicense to AGPLv3, with consent of contributors.
bindings.lua completely rewritten. Shift to multipart-post.
Updated readme.
New plugins: bing.lua, channel.lua.
Removed plugins: floodcontrol.lua, librefm.lua.
luarun.lua: Will now serialize returned tables. Aliased "/return" to "/lua return".
This commit is contained in:
topkecleon
2016-05-29 13:08:39 -04:00
parent fefadc562f
commit 725261fcf7
60 changed files with 1193 additions and 1098 deletions

View File

@ -1,6 +1,6 @@
local patterns = {}
local bindings = require('bindings')
local utilities = require('utilities')
patterns.triggers = {
'^/?s/.-/.-/?$'
@ -19,11 +19,11 @@ function patterns:action(msg)
)
if res == false then
output = 'Malformed pattern!'
bindings.sendReply(self, msg, output)
utilities.send_reply(self, msg, output)
return
end
output = 'Did you mean:\n"' .. output:sub(1, 4000) .. '"'
bindings.sendReply(self, msg.reply_to_message, output)
utilities.send_reply(self, msg.reply_to_message, output)
end