New filters implementation. "tags" are removed and replaced with an implementation that filters directly on the event, using an object/map instead of strings.

This commit is contained in:
Adrian Malacoda
2017-05-11 01:29:33 -05:00
parent 8cd8756722
commit 25d247f299
3 changed files with 144 additions and 49 deletions

View File

@@ -73,7 +73,16 @@ end
"""
foo = "bar"
[lua2]
type = "lua"
filters = [{ username = "David" }]
code = """
function on_message (message, reply)
reply("Lua2 says: " .. message)
end
"""
[autolink]
[logger]
filters = ["user:Dave"]
filters = [{ username = "Dave" }]