aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-10-23 20:11:06 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-10-23 20:11:06 +0500
commitda1e8c565a58700cdaecea23c057b55d130a5243 (patch)
tree1cdd7c24b7e3af4bc3d07ab679793ad9d957778b /main.lua
parent869f2859c3538ca67758cbfe10c57eefd6e09899 (diff)
downloadprosody-da1e8c565a58700cdaecea23c057b55d130a5243.tar.gz
prosody-da1e8c565a58700cdaecea23c057b55d130a5243.zip
Fixed: Works when LuaRocks is not present
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.lua b/main.lua
index 272486ce..e9e8fca2 100644
--- a/main.lua
+++ b/main.lua
@@ -1,4 +1,4 @@
-require "luarocks.require"
+pcall(require, "luarocks.require")
local server = require "net.server"
require "lxp"
@@ -31,7 +31,7 @@ require "util.stanza"
require "util.jid"
------------------------------------------------------------------------
-
+
-- Locals for faster access --
local t_insert = table.insert;
local t_concat = table.concat;