Changeset

158:703fa6922493

clix raw: Add a convenience function for smacks <r>
author Kim Alvefur <zash@zash.se>
date Wed, 14 Jul 2021 17:00:47 +0200
parents 157:aa0f11fb166c
children 159:68e09745d928
files clix/raw.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/clix/raw.lua	Sun Apr 18 23:36:18 2021 +0200
+++ b/clix/raw.lua	Wed Jul 14 17:00:47 2021 +0200
@@ -58,6 +58,9 @@
 				m = stwrap(verse.message),
 				p = stwrap(verse.presence),
 				iq = stwrap(verse.iq),
+				r = function ()
+					return verse.stanza("r", { xmlns = "urn:xmpp:sm:3" });
+				end,
 				ping = function(host)
 					return verse.iq{ type="get", to=host}:tag("ping", {xmlns="urn:xmpp:ping"});
 				end,