Software /
code /
prosody
Comparison
main.lua @ 133:b92493ea6fd7
Fixed: Works when LuaRocks is not present
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 23 Oct 2008 20:11:06 +0500 |
parent | 99:ba08b8a4eeef |
child | 150:d09b8a1ab046 |
comparison
equal
deleted
inserted
replaced
132:9a4aa57af367 | 133:b92493ea6fd7 |
---|---|
1 require "luarocks.require" | 1 pcall(require, "luarocks.require") |
2 | 2 |
3 local server = require "net.server" | 3 local server = require "net.server" |
4 require "lxp" | 4 require "lxp" |
5 require "socket" | 5 require "socket" |
6 require "ssl" | 6 require "ssl" |
29 local start = require "net.connlisteners".start; | 29 local start = require "net.connlisteners".start; |
30 require "util.stanza" | 30 require "util.stanza" |
31 require "util.jid" | 31 require "util.jid" |
32 | 32 |
33 ------------------------------------------------------------------------ | 33 ------------------------------------------------------------------------ |
34 | 34 |
35 -- Locals for faster access -- | 35 -- Locals for faster access -- |
36 local t_insert = table.insert; | 36 local t_insert = table.insert; |
37 local t_concat = table.concat; | 37 local t_concat = table.concat; |
38 local t_concatall = function (t, sep) local tt = {}; for _, s in ipairs(t) do t_insert(tt, tostring(s)); end return t_concat(tt, sep); end | 38 local t_concatall = function (t, sep) local tt = {}; for _, s in ipairs(t) do t_insert(tt, tostring(s)); end return t_concat(tt, sep); end |
39 local m_random = math.random; | 39 local m_random = math.random; |