mirror of
https://github.com/octoleo/lsyncd.git
synced 2025-01-23 07:08:33 +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.
|
-- This demo codes just minimal IRC functionality.
|
||||||
-- it does not respond to anything else than IRC PING messages.
|
-- 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
|
-- Requires "luasocket" to be installed
|
||||||
require("socket")
|
require("socket")
|
||||||
|
|
||||||
|
@ -802,10 +802,10 @@ local InletFactory = (function()
|
|||||||
-- Forwards access to inlet functions.
|
-- Forwards access to inlet functions.
|
||||||
--
|
--
|
||||||
local inletMeta = {
|
local inletMeta = {
|
||||||
__index = function(inlet, f)
|
__index = function(inlet, func)
|
||||||
local f = inletFuncs[f]
|
local f = inletFuncs[func]
|
||||||
if not f then
|
if not f then
|
||||||
error("inlet does not have function '"..f.."'", 2)
|
error("inlet does not have function '"..func.."'", 2)
|
||||||
end
|
end
|
||||||
return function(...)
|
return function(...)
|
||||||
return f(inlets[inlet], ...)
|
return f(inlets[inlet], ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user