Software /
code /
verse
Changeset
434:4300839a28ca
Merge
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 22 Oct 2020 15:28:09 +0100 |
parents | 433:5c77923ec1d9 (diff) 428:bde804b01f28 (current diff) |
children | 436:a9be85b2da17 |
files | |
diffstat | 5 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/client.lua Mon Dec 24 17:35:07 2018 +0100 +++ b/client.lua Thu Oct 22 15:28:09 2020 +0100 @@ -3,7 +3,6 @@ local jid_split = require "util.jid".split; local adns = require "net.adns"; -local lxp = require "lxp"; local st = require "util.stanza"; -- Shortcuts to save having to load util.stanza
--- a/doc/example.lua Mon Dec 24 17:35:07 2018 +0100 +++ b/doc/example.lua Thu Oct 22 15:28:09 2020 +0100 @@ -5,7 +5,7 @@ -- handy if you're hacking on Verse itself --os.execute("squish --minify-level=none verse"); -require "verse".init("client"); +local verse = require "verse".init("client"); c = verse.new(); c:add_plugin("version");
--- a/libs/encodings.lua Mon Dec 24 17:35:07 2018 +0100 +++ b/libs/encodings.lua Thu Oct 22 15:28:09 2020 +0100 @@ -6,7 +6,11 @@ module "encodings" +idna = {}; stringprep = {}; base64 = { encode = mime.b64, decode = mime.unb64 }; +utf8 = { + valid = (utf8 and utf8.len) and function (s) return not not utf8.len(s); end or function () return true; end; +}; return _M;
--- a/plugins/disco.lua Mon Dec 24 17:35:07 2018 +0100 +++ b/plugins/disco.lua Thu Oct 22 15:28:09 2020 +0100 @@ -328,9 +328,8 @@ end, 50); stream:hook("presence-out", function (presence) - if not presence:get_child("c", xmlns_caps) then - presence:reset():add_child(stream:caps()):reset(); - end + presence:remove_children("c", xmlns_caps); + presence:reset():add_child(stream:caps()):reset(); end, 10); end