Software /
code /
prosody
Comparison
plugins/mod_pep_simple.lua @ 9691:e11e076f0eb8
various: Don't rely on _G.unpack existing
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 17:09:55 +0100 |
parent | 9074:0462405b1cfb |
child | 10111:0f335815244f |
comparison
equal
deleted
inserted
replaced
9690:75ed3403065d | 9691:e11e076f0eb8 |
---|---|
12 local st = require "util.stanza"; | 12 local st = require "util.stanza"; |
13 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; | 13 local is_contact_subscribed = require "core.rostermanager".is_contact_subscribed; |
14 local pairs = pairs; | 14 local pairs = pairs; |
15 local next = next; | 15 local next = next; |
16 local type = type; | 16 local type = type; |
17 local unpack = table.unpack or unpack; -- luacheck: ignore 113 | |
17 local calculate_hash = require "util.caps".calculate_hash; | 18 local calculate_hash = require "util.caps".calculate_hash; |
18 local core_post_stanza = prosody.core_post_stanza; | 19 local core_post_stanza = prosody.core_post_stanza; |
19 local bare_sessions = prosody.bare_sessions; | 20 local bare_sessions = prosody.bare_sessions; |
20 | 21 |
21 local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; | 22 local xmlns_pubsub = "http://jabber.org/protocol/pubsub"; |