Changeset

154:e7f579d82b76

clix.raw: Expose the connection to unsandboxed manipulation Lets you eg hook events with custom code or whatever.
author Kim Alvefur <zash@zash.se>
date Sat, 10 Apr 2021 00:28:56 +0200
parents 153:56546fb3429b
children 155:65dc066a256a
files clix/raw.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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