]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lib/socket.lua
CHANSERV: cleanup of accounts is now 180 days
[irc/quakenet/newserv.git] / lua / lib / socket.lua
index e04593664d97571e20acc297894f8cd6c2686a51..7609c9aead68b1f4f006976a56560e715b56109f 100644 (file)
@@ -69,21 +69,21 @@ function socket_unix_bind(path, handler, tag)
 end
 
 local function socket_ip_connect(fn, address, port, handler, tag)
-  local connected, socket = fn(address, port, socket_handler, tag)
+  local connected, socket = fn(address, port, handler, tag)
   if connected == nil then
     return nil
   end
 
   socket_new(socket, handler)
   if connected then
-    socket_handler(socket, "connect", tag)
+    handler(socket, "connect", tag)
   end
 
   return socket
 end
 
 local function socket_ip_bind(fn, address, port, handler, tag)
-  local socket = fn(address, port, socket_handler, tag)
+  local socket = fn(address, port, handler, tag)
   if not socket then
     return nil
   end