Changeset

164:fafdcde2e2eb

clix: Import Verse where needed In the olden days of `module()` this would have been a global, but that is no longer the convention nor the case.
author Kim Alvefur <zash@zash.se>
date Wed, 01 Dec 2021 17:25:25 +0100
parents 163:801fcbe4a642
children 165:e4391832be1e
files clix/export.lua clix/presence.lua clix/roster.lua clix/send.lua clix/sendfilecontent.lua
diffstat 5 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/clix/export.lua	Mon Nov 22 18:47:31 2021 +0100
+++ b/clix/export.lua	Wed Dec 01 17:25:25 2021 +0100
@@ -1,3 +1,4 @@
+local verse = require "verse";
 short_opts.i = "interactive";
 local split_jid = require "util.jid".split;
 local timer = require "util.timer";
--- a/clix/presence.lua	Mon Nov 22 18:47:31 2021 +0100
+++ b/clix/presence.lua	Wed Dec 01 17:25:25 2021 +0100
@@ -1,3 +1,4 @@
+local verse = require "verse";
 local presence_values = { online = "1", chat = "2", away = "3", xa = "4", dnd = "5", offline = "6" };
 
 return function (opts)
--- a/clix/roster.lua	Mon Nov 22 18:47:31 2021 +0100
+++ b/clix/roster.lua	Wed Dec 01 17:25:25 2021 +0100
@@ -1,3 +1,4 @@
+local verse = require "verse"
 short_opts.i = "interactive";
 local split_jid = require "util.jid".split;
 local function printor(str)
--- a/clix/send.lua	Mon Nov 22 18:47:31 2021 +0100
+++ b/clix/send.lua	Wed Dec 01 17:25:25 2021 +0100
@@ -1,3 +1,4 @@
+local verse = require "verse";
 short_opts.i = "interactive";
 short_opts.e = "echo";
 
--- a/clix/sendfilecontent.lua	Mon Nov 22 18:47:31 2021 +0100
+++ b/clix/sendfilecontent.lua	Wed Dec 01 17:25:25 2021 +0100
@@ -1,3 +1,4 @@
+local verse = require "verse";
 return function (opts, arg)
 	if opts.short_help then
 		print("Send file content");