clix.raw: Expose the connection to unsandboxed manipulation

Sat, 10 Apr 2021 00:28:56 +0200

author
Kim Alvefur <zash@zash.se>
date
Sat, 10 Apr 2021 00:28:56 +0200
changeset 154
e7f579d82b76
parent 153
56546fb3429b
child 155
65dc066a256a

clix.raw: Expose the connection to unsandboxed manipulation

Lets you eg hook events with custom code or whatever.

clix/raw.lua file | annotate | diff | comparison | revisions
--- a/clix/raw.lua	Sat Apr 10 00:28:05 2021 +0200
+++ b/clix/raw.lua	Sat Apr 10 00:28:56 2021 +0200
@@ -15,6 +15,7 @@
 	end
 	
 	local function on_connect(conn)
+		_G.conn = conn
 		local print = print;
 		local function stprint(stanza)
 			if stanza.attr.to == conn.jid then

mercurial