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 | ad3e5fd42bd1dddd478fffd412a842e98c735e9a (patch) | |
tree | 7c9f8830816160b0c28ab59301d48d86ef286acf /plugins | |
parent | 7799a8a7bf9f29c6d34bdcd3ded42fc6387c0fe5 (diff) | |
download | prosody-ad3e5fd42bd1dddd478fffd412a842e98c735e9a.tar.gz prosody-ad3e5fd42bd1dddd478fffd412a842e98c735e9a.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 |