aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2007-09-04 18:37:13 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2007-09-04 18:37:13 -0500
commit6e6c99f81a6a475501e22c3625016cdc8aebdf7f (patch)
tree4b2b16440df9fb182623e4e5cbb7fcd7c12f591f
parentb37239c2f9b627457b6a2147faa0821b20380e96 (diff)
downloadluairc-6e6c99f81a6a475501e22c3625016cdc8aebdf7f.tar.gz
luairc-6e6c99f81a6a475501e22c3625016cdc8aebdf7f.zip
lets make this a little more clear and not do weird name hiding
-rw-r--r--src/irc/dcc.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/irc/dcc.lua b/src/irc/dcc.lua
index 5567695..21d35aa 100644
--- a/src/irc/dcc.lua
+++ b/src/irc/dcc.lua
@@ -84,8 +84,8 @@ local function handle_connect(ssock, file, packet_size)
ssock:close()
irc._unregister_socket(ssock, 'r')
irc._register_socket(sock, 'w',
- coroutine.wrap(function(sock)
- return send_file(sock, file, packet_size)
+ coroutine.wrap(function(s)
+ return send_file(s, file, packet_size)
end))
return true
end
@@ -133,8 +133,8 @@ function _accept(filename, address, port, packet_size)
sock:settimeout(0.1)
local file = base.assert(io.open(misc._get_unique_filename(filename), "w"))
irc._register_socket(sock, 'r',
- coroutine.wrap(function(sock)
- return accept_file(sock, file, packet_size)
+ coroutine.wrap(function(s)
+ return accept_file(s, file, packet_size)
end))
end
-- }}}
@@ -164,8 +164,8 @@ function send(nick, filename, port)
local size = file:seek("end")
file:seek("set")
irc._register_socket(sock, 'r',
- coroutine.wrap(function(sock)
- return handle_connect(sock, file)
+ coroutine.wrap(function(s)
+ return handle_connect(s, file)
end))
filename = misc._basename(filename)
if filename:find(" ") then filename = '"' .. filename .. '"' end