Fine tuning the "require" business.

This commit is contained in:
Diego Nehab 2004-05-30 21:36:22 +00:00
parent c23240726e
commit 5ca1049ab4
17 changed files with 133 additions and 116 deletions

View file

@ -6,11 +6,12 @@
-- RCS ID: $Id$
-----------------------------------------------------------------------------
-- make sure LuaSocket is loaded
require"socket"
require("socket")
-- get LuaSocket namespace
local socket = _G[LUASOCKET_LIBNAME]
require"ltn12"
require("ltn12")
require("tp")
-- create smtp namespace inside LuaSocket namespace
local smtp = socket.smtp or {}