scansion.objects.client: Expose a 'host' property with the bare hostname

Wed, 28 Oct 2015 02:26:53 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 28 Oct 2015 02:26:53 +0100
changeset 50
0ce9c9a0c2a0
parent 49
69c329681c3b
child 51
afc7765827be

scansion.objects.client: Expose a 'host' property with the bare hostname

scansion/objects/client.lua file | annotate | diff | comparison | revisions
--- a/scansion/objects/client.lua	Wed Oct 28 02:26:15 2015 +0100
+++ b/scansion/objects/client.lua	Wed Oct 28 02:26:53 2015 +0100
@@ -57,6 +57,7 @@
 		client.stream:connect_client(client.jid, client.password);
 		wait();
 		client.full_jid = client.stream.jid;
+		client.host = client.stream.host;
 	end;
 
 	sends = function (client, data)

mercurial