]> jfr.im git - irc/quakenet/newserv.git/blobdiff - lua/lib/socket.lua
CHANSERV: better batcher error handling for expired accounts/accounts with no email.
[irc/quakenet/newserv.git] / lua / lib / socket.lua
index e04593664d97571e20acc297894f8cd6c2686a51..c5557d64621c33dd2dec95a20d1df0b0f75bc2df 100644 (file)
@@ -11,7 +11,7 @@ local socket_close_raw = socket_close
 
 local sockets = {}
 
-function socket_handler(socket, event, tag, ...)
+local function socket_handler(socket, event, tag, ...)
   if event == "flush" then
     local buf = sockets[socket].writebuf
     local ret = socket_write_raw(socket, buf)
@@ -70,6 +70,7 @@ end
 
 local function socket_ip_connect(fn, address, port, handler, tag)
   local connected, socket = fn(address, port, socket_handler, tag)
+
   if connected == nil then
     return nil
   end