# HG changeset patch # User Matthew Wild # Date 1336742645 -3600 # Node ID 8e3992ae7bf5c8264d78a599d5769c1076421ea6 # Parent 3662091d303c929cf1ba2f3c93abd47f1db651c0 mod_dialback: Remove a remaining usage of string.format, ick. diff -r 3662091d303c -r 8e3992ae7bf5 plugins/mod_dialback.lua --- a/plugins/mod_dialback.lua Fri May 11 02:36:26 2012 +0100 +++ b/plugins/mod_dialback.lua Fri May 11 14:24:05 2012 +0100 @@ -6,8 +6,6 @@ -- COPYING file in the source package for more information. -- -local format = string.format; - local hosts = _G.hosts; local s2s_make_authenticated = require "core.s2smanager".make_authenticated; @@ -28,7 +26,7 @@ function initiate_dialback(session) -- generate dialback key session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host); - session.sends2s(format("%s", session.from_host, session.to_host, session.dialback_key)); + session.sends2s(st.stanza("db:result", { from = session.from_host, to = session.to_host }):text(session.dialback_key)); session.log("info", "sent dialback key on outgoing s2s stream"); end