Changeset

3026:b2c9b832612b

mod_vcard_command: Tweak to not rely on legacy module() behavior
author Kim Alvefur <zash@zash.se>
date Wed, 23 May 2018 00:22:29 +0200
parents 3025:5b8983e100da
children 3027:ce34cbc10b5b
files mod_vcard_command/mod_vcard_command.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;