verse.client: Add stream_id property

Tue, 03 Aug 2010 09:17:03 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Tue, 03 Aug 2010 09:17:03 +0100
changeset 83
8221f3c25fd4
parent 82
f306c2f8bb88
child 84
d85d2443478e

verse.client: Add stream_id property

client.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Fri Jul 02 13:36:18 2010 +0100
+++ b/client.lua	Tue Aug 03 09:17:03 2010 +0100
@@ -19,7 +19,8 @@
 	 default_ns = "jabber:client" };
 	
 function stream_callbacks.streamopened(stream, attr)
-	if not stream:event("opened") then
+	stream.stream_id = attr.id;
+	if not stream:event("opened", attr) then
 		stream.notopen = nil;
 	end
 	return true;

mercurial