Fixed: Works when LuaRocks is not present

This commit is contained in:
Waqas Hussain 2008-10-23 20:11:06 +05:00
parent 869f2859c3
commit da1e8c565a

View file

@ -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;