Software /
code /
prosody
Diff
net/xmppclient_listener.lua @ 2466:0e44b6035210
net.xmpp{client,server,component}: Update for new xmlhandlers syntax
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 19 Jan 2010 03:56:44 +0000 |
parent | 2454:e4818c49192d |
child | 2753:305428b14f76 |
line wrap: on
line diff
--- a/net/xmppclient_listener.lua Tue Jan 19 03:55:19 2010 +0000 +++ b/net/xmppclient_listener.lua Tue Jan 19 03:56:44 2010 +0000 @@ -30,8 +30,7 @@ local config = require "core.configmanager"; local opt_keepalives = config.get("*", "core", "tcp_keepalives"); -local stream_callbacks = { stream_tag = "http://etherx.jabber.org/streams\1stream", - default_ns = "jabber:client", +local stream_callbacks = { default_ns = "jabber:client", streamopened = sm_streamopened, streamclosed = sm_streamclosed, handlestanza = core_process_stanza }; function stream_callbacks.error(session, error, data) @@ -71,9 +70,8 @@ return true; end - local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; -local default_stream_attr = { ["xmlns:stream"] = stream_callbacks.stream_tag:match("[^\1]*"), xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; +local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; local function session_close(session, reason) local log = session.log or log; if session.conn then