diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 21:36:22 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-05-30 21:36:22 +0000 |
| commit | 5ca1049ab47f3f9ff9157f71af9072f04a637500 (patch) | |
| tree | 24fcb14f2890900a4a709312ab25bfc2c14a3939 /src/smtp.lua | |
| parent | c23240726e3044e3eaa32a82a999b754c08bc183 (diff) | |
| download | luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.tar.gz luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.tar.bz2 luasocket-5ca1049ab47f3f9ff9157f71af9072f04a637500.zip | |
Fine tuning the "require" business.
Diffstat (limited to 'src/smtp.lua')
| -rw-r--r-- | src/smtp.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/smtp.lua b/src/smtp.lua index 01babbe..3108395 100644 --- a/src/smtp.lua +++ b/src/smtp.lua | |||
| @@ -6,11 +6,12 @@ | |||
| 6 | -- RCS ID: $Id$ | 6 | -- RCS ID: $Id$ |
| 7 | ----------------------------------------------------------------------------- | 7 | ----------------------------------------------------------------------------- |
| 8 | -- make sure LuaSocket is loaded | 8 | -- make sure LuaSocket is loaded |
| 9 | require"socket" | 9 | require("socket") |
| 10 | -- get LuaSocket namespace | 10 | -- get LuaSocket namespace |
| 11 | local socket = _G[LUASOCKET_LIBNAME] | 11 | local socket = _G[LUASOCKET_LIBNAME] |
| 12 | 12 | ||
| 13 | require"ltn12" | 13 | require("ltn12") |
| 14 | require("tp") | ||
| 14 | 15 | ||
| 15 | -- create smtp namespace inside LuaSocket namespace | 16 | -- create smtp namespace inside LuaSocket namespace |
| 16 | local smtp = socket.smtp or {} | 17 | local smtp = socket.smtp or {} |
