From a20658487ca8b09719ba5e4372f49414a091b231 Mon Sep 17 00:00:00 2001 From: Axel Kittenberger Date: Wed, 1 Dec 2010 15:19:12 +0000 Subject: [PATCH] indeed fix from Duncan --- examples/lsayirc.lua | 5 ++++- lsyncd.lua | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/lsayirc.lua b/examples/lsayirc.lua index b719854..49c44ae 100644 --- a/examples/lsayirc.lua +++ b/examples/lsayirc.lua @@ -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") diff --git a/lsyncd.lua b/lsyncd.lua index 3fe36a7..417b343 100644 --- a/lsyncd.lua +++ b/lsyncd.lua @@ -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], ...)