Prosody IM 0.9


changeset adfffc5b4e2a

util.dependencies: Add compatibility code for LuaSocket no longer exporting as a global

author
Kim Alvefur
date
parents
67a9d2de2300
children
776789a98047
topic
files

1 files changed, 3 insertions(+), 0 deletions(-)

↓ Download patch

--- a/util/dependencies.lua	Sat Jul 08 18:21:45 2017 +0200
+++ b/util/dependencies.lua	Tue Jul 25 13:16:31 2017 +0200
@@ -79,6 +79,9 @@
 				["Source"] = "http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/";
 			});
 		fatal = true;
+	elseif not _G.socket then
+		-- COMPAT Code expecting LuaSocket to export as a global
+		_G.socket = socket;
 	end
 	
 	local lfs, err = softreq "lfs"