Comparison

plugins/mod_dialback.lua @ 4579:5650c290fe8e

mod_dialback: Remove unused import of s2smanager.send_to_host()
author Kim Alvefur <zash@zash.se>
date Sat, 03 Mar 2012 00:01:10 +0100
parent 4567:24617f360200
child 4584:9a5de6509aa8
comparison
equal deleted inserted replaced
4578:da0528c59c52 4579:5650c290fe8e
7 -- 7 --
8 8
9 local format = string.format; 9 local format = string.format;
10 10
11 local hosts = _G.hosts; 11 local hosts = _G.hosts;
12 local send_s2s = require "core.s2smanager".send_to_host;
13 local s2s_make_authenticated = require "core.s2smanager".make_authenticated; 12 local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
14 13
15 local log = module._log; 14 local log = module._log;
16 15
17 local st = require "util.stanza"; 16 local st = require "util.stanza";
85 -- Just used for friendlier logging 84 -- Just used for friendlier logging
86 origin.to_host = attr.to; 85 origin.to_host = attr.to;
87 end 86 end
88 87
89 origin.log("debug", "asking %s if key %s belongs to them", attr.from, stanza[1]); 88 origin.log("debug", "asking %s if key %s belongs to them", attr.from, stanza[1]);
90 --send_s2s(attr.to, attr.from,
91 origin.send(st.stanza("db:verify", { from = attr.to, to = attr.from, id = origin.streamid }):text(stanza[1])); 89 origin.send(st.stanza("db:verify", { from = attr.to, to = attr.from, id = origin.streamid }):text(stanza[1]));
92 return true; 90 return true;
93 end 91 end
94 end); 92 end);
95 93