Software /
code /
prosody
Diff
plugins/mod_admin_telnet.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 | 9454:6780049be177 |
child | 9711:39dc037875e1 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sat Dec 08 17:07:28 2018 +0100 +++ b/plugins/mod_admin_telnet.lua Sat Dec 08 17:09:55 2018 +0100 @@ -22,6 +22,7 @@ local console_listener = { default_port = 5582; default_mode = "*a"; interface = "127.0.0.1" }; +local unpack = table.unpack or unpack; -- luacheck: ignore 113 local iterators = require "util.iterators"; local keys, values = iterators.keys, iterators.values; local jid_bare, jid_split, jid_join = import("util.jid", "bare", "prepped_split", "join");