aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-30 16:03:15 +0100
committerKim Alvefur <zash@zash.se>2018-12-30 16:03:15 +0100
commitf102941562aa2228e1949261c91045ecbf71c18d (patch)
tree7c9f8830816160b0c28ab59301d48d86ef286acf /plugins
parent0fe56344ca10575746f969992b63b4173395eed2 (diff)
downloadprosody-f102941562aa2228e1949261c91045ecbf71c18d.tar.gz
prosody-f102941562aa2228e1949261c91045ecbf71c18d.zip
core.moduleapi: Use util.error for :send_iq errors
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index f3731c8a..5bb9361e 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -1111,9 +1111,6 @@ function def_env.xmpp:ping(localhost, remotehost, timeout)
wait();
if ret then
return true, "pong from " .. ret.stanza.attr.from;
- elseif type(err) == "table" and st.is_stanza(err.stanza) then
- local t, cond, text = err.stanza:get_error();
- return false, text or cond or t;
else
return false, tostring(err);
end