From: jluehrs2 Date: Tue, 4 Sep 2007 04:59:12 +0000 (-0500) Subject: finish up the handlers X-Git-Tag: 0.03~57 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=c85a06f6033e9239087ad8b76c7dfde6a8d515f9;p=luairc.git finish up the handlers --- diff --git a/src/irc.lua b/src/irc.lua index 13e1e49..6f57267 100644 --- a/src/irc.lua +++ b/src/irc.lua @@ -489,9 +489,9 @@ function ctcp_handlers.on_action(from, to, message) if to:sub(1, 1) == "#" then base.assert(serverinfo.channels[to], "Received channel msg from unknown channel: " .. to) - misc.try_call(on_channel_act, serverinfo.channels[to], from, message) + misc._try_call(on_channel_act, serverinfo.channels[to], from, message) else - misc.try_call(on_private_act, from, message) + misc._try_call(on_private_act, from, message) end end -- }}} @@ -500,10 +500,10 @@ end -- TODO: can we not have this handler be registered unless the dcc module is -- loaded? function ctcp_handlers.on_dcc(from, to, message) - local type, argument, address, port, size = base.unpack(misc.split(message, " ", nil, '"', '"')) + local type, argument, address, port, size = base.unpack(misc._split(message, " ", nil, '"', '"')) if type == "SEND" then - if misc.try_call(on_dcc, from, to, argument, address, port, size) then - dcc.accept(argument, address, port) + if misc._try_call(on_dcc, from, to, argument, address, port, size) then + dcc._accept(argument, address, port) end elseif type == "CHAT" then -- TODO: implement this? do people ever use this?