changeset 1743:8fbe16c83807

mod_profile: Don't use import()
author Kim Alvefur <zash@zash.se>
date Mon, 18 May 2015 02:55:39 +0200
parents ec50cecc9318
children fbef84033fae
files mod_profile/mod_profile.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_profile/mod_profile.lua	Mon May 18 02:46:41 2015 +0200
+++ b/mod_profile/mod_profile.lua	Mon May 18 02:55:39 2015 +0200
@@ -1,7 +1,8 @@
 -- mod_profile
 
 local st = require"util.stanza";
-local jid_split, jid_bare = import("util.jid", "split", "bare");
+local jid_split = require"util.jid".split;
+local jid_bare = require"util.jid".bare;
 local is_admin = require"core.usermanager".is_admin;
 local vcard = require"util.vcard";
 local base64 = require"util.encodings".base64;