Fixed: Works when LuaRocks is not present

Thu, 23 Oct 2008 20:11:06 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Thu, 23 Oct 2008 20:11:06 +0500
changeset 133
b92493ea6fd7
parent 132
9a4aa57af367
child 134
b772317ea1ee

Fixed: Works when LuaRocks is not present

main.lua file | annotate | diff | comparison | revisions
--- a/main.lua	Thu Oct 23 20:02:30 2008 +0500
+++ b/main.lua	Thu Oct 23 20:11:06 2008 +0500
@@ -1,4 +1,4 @@
-require "luarocks.require"
+pcall(require, "luarocks.require")
 
 local server = require "net.server"
 require "lxp"
@@ -31,7 +31,7 @@
 require "util.jid"
 
 ------------------------------------------------------------------------
- 
+
 -- Locals for faster access --
 local t_insert = table.insert;
 local t_concat = table.concat;

mercurial