scansion.objects.client: Pass on 'connect_host' to the stream

Wed, 28 Oct 2015 02:25:34 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 28 Oct 2015 02:25:34 +0100
changeset 48
6450aea6c564
parent 47
1cbc0d9d132d
child 49
69c329681c3b

scansion.objects.client: Pass on 'connect_host' to the stream

scansion/objects/client.lua file | annotate | diff | comparison | revisions
--- a/scansion/objects/client.lua	Wed Oct 28 02:11:36 2015 +0100
+++ b/scansion/objects/client.lua	Wed Oct 28 02:25:34 2015 +0100
@@ -37,6 +37,7 @@
 	_validate = function (client)
 		assert(client.jid, "No JID specified");
 		client.stream = verse.new(verse.new_logger(client.name));
+		client.stream.connect_host = client.connect_host
 	
 		function client.log(fmt, ...)
 			return client.stream:info(fmt, ...);

mercurial