Software / code / verse
Comparison
client.lua @ 48:abccad4b8559
verse.client: Update stream_callbacks format for new xmlhandlers API (thanks to Bill Clark for the patch)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 17 Feb 2010 00:24:54 +0000 |
| parent | 47:3ebffb4fc48c |
| child | 49:9c10ff584e87 |
comparison
equal
deleted
inserted
replaced
| 47:3ebffb4fc48c | 48:abccad4b8559 |
|---|---|
| 11 | 11 |
| 12 local init_xmlhandlers = require "core.xmlhandlers"; | 12 local init_xmlhandlers = require "core.xmlhandlers"; |
| 13 | 13 |
| 14 local xmlns_stream = "http://etherx.jabber.org/streams"; | 14 local xmlns_stream = "http://etherx.jabber.org/streams"; |
| 15 | 15 |
| 16 local stream_callbacks = { stream_tag = xmlns_stream.."\1stream", | 16 local stream_callbacks = { |
| 17 default_ns = "jabber:client" }; | 17 stream_ns = xmlns_stream, |
| 18 stream_tag = "stream", | |
| 19 default_ns = "jabber:client" }; | |
| 18 | 20 |
| 19 function stream_callbacks.streamopened(stream, attr) | 21 function stream_callbacks.streamopened(stream, attr) |
| 20 if not stream:event("opened") then | 22 if not stream:event("opened") then |
| 21 stream.notopen = nil; | 23 stream.notopen = nil; |
| 22 end | 24 end |