aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-05-11 14:24:05 +0100
committerMatthew Wild <mwild1@gmail.com>2012-05-11 14:24:05 +0100
commit54c67720af8d6f1d24d2a263266fb6b32bbf9061 (patch)
treea306f192c4d580cc1da48cb56e34369e3d4d5610 /plugins/mod_dialback.lua
parent515110f9445d26aa340f2d7ef3f1bb23d1627a9a (diff)
downloadprosody-54c67720af8d6f1d24d2a263266fb6b32bbf9061.tar.gz
prosody-54c67720af8d6f1d24d2a263266fb6b32bbf9061.zip
mod_dialback: Remove a remaining usage of string.format, ick.
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index e47d63ed..2299c0dc 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -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 @@ end
function initiate_dialback(session)
-- generate dialback key
session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host);
- session.sends2s(format("<db:result from='%s' to='%s'>%s</db:result>", 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