Mercurial > prosody-hg
diff plugins/mod_admin_telnet.lua @ 9748:99199b53019f
core.moduleapi: Use util.error for :send_iq errors
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 30 Dec 2018 16:03:15 +0100 |
| parents | d46c376dfe2c |
| children | 3a14815f5430 |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Dec 30 14:26:58 2018 +0100 +++ b/plugins/mod_admin_telnet.lua Sun Dec 30 16:03:15 2018 +0100 @@ -1111,9 +1111,6 @@ 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
