mod_vcard_command: Tweak to not rely on legacy module() behavior
authorKim Alvefur <zash@zash.se>
Wed, 23 May 2018 00:22:29 +0200
changeset 3030 b2c9b832612b
parent 3029 5b8983e100da
child 3031 ce34cbc10b5b
mod_vcard_command: Tweak to not rely on legacy module() behavior
mod_vcard_command/mod_vcard_command.lua
--- a/mod_vcard_command/mod_vcard_command.lua	Tue Oct 08 16:38:40 2013 +0000
+++ b/mod_vcard_command/mod_vcard_command.lua	Wed May 23 00:22:29 2018 +0200
@@ -8,7 +8,7 @@
 -- COPYING file in the source package for more information.
 -----------------------------------------------------------
 
-if not rawget(_G, "prosodyctl") then
+function module.load()
         module:log("error", "Do not load this module in Prosody");
         module.host = "*";
         return;