Mercurial > prosody-modules
comparison mod_firewall/test.lib.lua @ 2805:2afbb7d47905
mod_firewall/test: Import the ltn12 module [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 20 Oct 2017 02:49:34 +0200 |
parents | b50f7b9fdbbb |
children | 93a4b13ca9f6 |
comparison
equal
deleted
inserted
replaced
2804:b50f7b9fdbbb | 2805:2afbb7d47905 |
---|---|
1 -- luacheck: globals load_unload_scripts | 1 -- luacheck: globals load_unload_scripts |
2 local set = require "util.set"; | 2 local set = require "util.set"; |
3 local ltn12 = require "socket.ltn12"; | |
3 | 4 |
4 local xmppstream = require "util.xmppstream"; | 5 local xmppstream = require "util.xmppstream"; |
5 | 6 |
6 local function stderr(...) | 7 local function stderr(...) |
7 io.stderr:write("** ", table.concat({...}, "\t", 1, select("#", ...)), "\n"); | 8 io.stderr:write("** ", table.concat({...}, "\t", 1, select("#", ...)), "\n"); |