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

View File

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