plugins/mod_blocklist.lua
changeset 6534 18f4973849b1
parent 6498 44df423f8290
child 6632 42aeb882b3e1
equal deleted inserted replaced
6533:35ebcb733c4c 6534:18f4973849b1
    11 
    11 
    12 local user_exists = require"core.usermanager".user_exists;
    12 local user_exists = require"core.usermanager".user_exists;
    13 local is_contact_subscribed = require"core.rostermanager".is_contact_subscribed;
    13 local is_contact_subscribed = require"core.rostermanager".is_contact_subscribed;
    14 local st = require"util.stanza";
    14 local st = require"util.stanza";
    15 local st_error_reply = st.error_reply;
    15 local st_error_reply = st.error_reply;
    16 local jid_prep, jid_split = import("jid", "prep", "split");
    16 local jid_prep, jid_split = import("util.jid", "prep", "split");
    17 
    17 
    18 local host = module.host;
    18 local host = module.host;
    19 local storage = module:open_store();
    19 local storage = module:open_store();
    20 local sessions = prosody.hosts[host].sessions;
    20 local sessions = prosody.hosts[host].sessions;
    21 
    21