diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-30 16:03:15 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-30 16:03:15 +0100 |
commit | f102941562aa2228e1949261c91045ecbf71c18d (patch) | |
tree | 7c9f8830816160b0c28ab59301d48d86ef286acf /plugins | |
parent | 0fe56344ca10575746f969992b63b4173395eed2 (diff) | |
download | prosody-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.lua | 3 |
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 |