comparison mod_vcard_command/mod_vcard_command.lua @ 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 5b8983e100da
children
comparison
equal deleted inserted replaced
3025:5b8983e100da 3026:b2c9b832612b
6 -- 6 --
7 -- This project is MIT/X11 licensed. Please see the 7 -- This project is MIT/X11 licensed. Please see the
8 -- COPYING file in the source package for more information. 8 -- COPYING file in the source package for more information.
9 ----------------------------------------------------------- 9 -----------------------------------------------------------
10 10
11 if not rawget(_G, "prosodyctl") then 11 function module.load()
12 module:log("error", "Do not load this module in Prosody"); 12 module:log("error", "Do not load this module in Prosody");
13 module.host = "*"; 13 module.host = "*";
14 return; 14 return;
15 end 15 end
16 16