indeed fix from Duncan

This commit is contained in:
Axel Kittenberger 2010-12-01 15:19:12 +00:00
parent 8716e71f6d
commit a20658487c
2 changed files with 7 additions and 4 deletions

View File

@ -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")

View File

@ -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], ...)