Diff

plugins/mod_admin_telnet.lua @ 6016:eb05360e8525

mod_admin_telnet: Prep jids for user:create() etc.
author Kim Alvefur <zash@zash.se>
date Sun, 09 Feb 2014 15:17:01 +0100
parent 5769:f6ea5b3739c9
child 6017:ac0879a8190a
child 6064:c4a3222165c4
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua	Sun Feb 09 15:13:46 2014 +0100
+++ b/plugins/mod_admin_telnet.lua	Sun Feb 09 15:17:01 2014 +0100
@@ -23,8 +23,7 @@
 
 local iterators = require "util.iterators";
 local keys, values = iterators.keys, iterators.values;
-local jid = require "util.jid";
-local jid_bare, jid_split = jid.bare, jid.split;
+local jid_bare, jid_split = import("util.jid", "bare", "prepped_split");
 local set, array = require "util.set", require "util.array";
 local cert_verify_identity = require "util.x509".verify_identity;
 local envload = require "util.envload".envload;