aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2007-09-03 23:59:12 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2007-09-03 23:59:12 -0500
commitc85a06f6033e9239087ad8b76c7dfde6a8d515f9 (patch)
tree93d9159733685a7ea00325e3a6adc342a1b2145a /src
parent8b03564cea4c233b53b681a71bbf848871f70d30 (diff)
downloadluairc-c85a06f6033e9239087ad8b76c7dfde6a8d515f9.tar.gz
luairc-c85a06f6033e9239087ad8b76c7dfde6a8d515f9.zip
finish up the handlers
Diffstat (limited to 'src')
-rw-r--r--src/irc.lua10
1 files changed, 5 insertions, 5 deletions
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?