Software /
code /
prosody
Diff
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 |
line wrap: on
line diff
--- a/plugins/mod_pep_simple.lua Sat Dec 08 17:07:28 2018 +0100 +++ b/plugins/mod_pep_simple.lua Sat Dec 08 17:09:55 2018 +0100 @@ -14,6 +14,7 @@ local pairs = pairs; local next = next; local type = type; +local unpack = table.unpack or unpack; -- luacheck: ignore 113 local calculate_hash = require "util.caps".calculate_hash; local core_post_stanza = prosody.core_post_stanza; local bare_sessions = prosody.bare_sessions;