Software /
code /
verse
Diff
plugins/version.lua @ 380:0891b4e27766
Discard trailing whitespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 01 May 2015 23:27:29 +0200 |
parent | 250:a5ac643a7fd6 |
child | 395:e86144a4eaa1 |
line wrap: on
line diff
--- a/plugins/version.lua Fri May 01 21:46:24 2015 +0200 +++ b/plugins/version.lua Fri May 01 23:27:29 2015 +0200 @@ -26,11 +26,11 @@ stream:send(reply); return true; end); - + function stream:query_version(target_jid, callback) callback = callback or function (version) return stream:event("version/response", version); end stream:send_iq(verse.iq({ type = "get", to = target_jid }) - :tag("query", { xmlns = xmlns_version }), + :tag("query", { xmlns = xmlns_version }), function (reply) if reply.attr.type == "result" then local query = reply:get_child("query", xmlns_version);