mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-05 16:12:32 +00:00
indeed fix from Duncan
This commit is contained in:
parent
8716e71f6d
commit
a20658487c
@ -12,7 +12,10 @@
|
||||
--
|
||||
-- This demo codes just minimal IRC functionality.
|
||||
-- it does not respond to anything else than IRC PING messages.
|
||||
|
||||
--
|
||||
-- There is no flood control, if a lot happens the IRC server will disconnect
|
||||
-- the bot.
|
||||
--
|
||||
-- Requires "luasocket" to be installed
|
||||
require("socket")
|
||||
|
||||
|
@ -802,10 +802,10 @@ local InletFactory = (function()
|
||||
-- Forwards access to inlet functions.
|
||||
--
|
||||
local inletMeta = {
|
||||
__index = function(inlet, f)
|
||||
local f = inletFuncs[f]
|
||||
__index = function(inlet, func)
|
||||
local f = inletFuncs[func]
|
||||
if not f then
|
||||
error("inlet does not have function '"..f.."'", 2)
|
||||
error("inlet does not have function '"..func.."'", 2)
|
||||
end
|
||||
return function(...)
|
||||
return f(inlets[inlet], ...)
|
||||
|
Loading…
Reference in New Issue
Block a user