Diff

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
line wrap: on
line diff
--- 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;