# HG changeset patch # User Matthew Wild # Date 1336744649 -3600 # Node ID 9cc934f49df0e3a07e6f274559028506ff64f991 # Parent 8e3992ae7bf5c8264d78a599d5769c1076421ea6 mod_c2s: Another lurking string.format squashed. diff -r 8e3992ae7bf5 -r 9cc934f49df0 plugins/mod_c2s.lua --- a/plugins/mod_c2s.lua Fri May 11 14:24:05 2012 +0100 +++ b/plugins/mod_c2s.lua Fri May 11 14:57:29 2012 +0100 @@ -17,7 +17,6 @@ local uuid_generate = require "util.uuid".generate; local xpcall, tostring, type = xpcall, tostring, type; -local format = string.format; local traceback = debug.traceback; local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams"; @@ -54,8 +53,9 @@ return; end - send(""); - send(format("", session.streamid, session.host)); + send(""..st.stanza("stream:stream", { + xmlns = 'jabber:client', ["xmlns:stream"] = 'http://etherx.jabber.org/streams'; + id = session.streamid, from = session.host, version = '1.0', ["xml:lang"] = 'en' }):top_tag()); (session.log or log)("debug", "Sent reply to client"); session.notopen = nil;