From c85a06f6033e9239087ad8b76c7dfde6a8d515f9 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Mon, 3 Sep 2007 23:59:12 -0500 Subject: finish up the handlers --- src/irc.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src') 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? -- cgit v1.2.3-54-g00ecf