Software / code / prosody
Comparison
plugins/mod_component.lua @ 4757:5fb68e68ba0b
mod_component: Remove unused variable
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Sat, 28 Apr 2012 03:13:59 +0100 |
| parent | 4734:4d43dbd6de17 |
| child | 4803:39ba097ec641 |
comparison
equal
deleted
inserted
replaced
| 4756:f8ddaaa08a8e | 4757:5fb68e68ba0b |
|---|---|
| 205 --- Closing a component connection | 205 --- Closing a component connection |
| 206 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; | 206 local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; |
| 207 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; | 207 local default_stream_attr = { ["xmlns:stream"] = "http://etherx.jabber.org/streams", xmlns = stream_callbacks.default_ns, version = "1.0", id = "" }; |
| 208 local function session_close(session, reason) | 208 local function session_close(session, reason) |
| 209 if session.destroyed then return; end | 209 if session.destroyed then return; end |
| 210 local log = session.log or log; | |
| 211 if session.conn then | 210 if session.conn then |
| 212 if session.notopen then | 211 if session.notopen then |
| 213 session.send("<?xml version='1.0'?>"); | 212 session.send("<?xml version='1.0'?>"); |
| 214 session.send(st.stanza("stream:stream", default_stream_attr):top_tag()); | 213 session.send(st.stanza("stream:stream", default_stream_attr):top_tag()); |
| 215 end | 214 end |