prosodyctl

changeset 2798
2702ee68727d
parent 2786
534e171036ef
--- a/prosodyctl	Thu Jan 28 18:10:20 2010 +0000
+++ b/prosodyctl	Wed Mar 03 20:12:24 2010 +0000
@@ -30,7 +30,10 @@
 end
 
 -- Required to be able to find packages installed with luarocks
-pcall(require, "luarocks.require")
+if not pcall(require, "luarocks.loader") then -- Try LuaRocks 2.x
+	pcall(require, "luarocks.require") -- Try LuaRocks 1.x
+end
+
 
 config = require "core.configmanager"
 

mercurial