diff options
| author | Richard Maudsley <richard.maudsley@isode.com> | 2014-05-13 14:48:10 (GMT) |
|---|---|---|
| committer | Swift Review <review@swift.im> | 2014-05-27 19:53:49 (GMT) |
| commit | 058719296f496b14b906fdee3d74d72a78d9f6a2 (patch) | |
| tree | e15b5e0032b48c924f7f69e20e0b721172a5691d /Sluift/core.lua | |
| parent | e5975a6d4809bf05f8c9df724c926bd26fc4a9df (diff) | |
| download | swift-contrib-058719296f496b14b906fdee3d74d72a78d9f6a2.zip swift-contrib-058719296f496b14b906fdee3d74d72a78d9f6a2.tar.bz2 | |
Added Sluift MAM examples. send_mam_query becomes set_mam_query.
Change-Id: I5d81e2476c83a16a8e478656d11d91137b009f3a
Diffstat (limited to 'Sluift/core.lua')
| -rw-r--r-- | Sluift/core.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Sluift/core.lua b/Sluift/core.lua index dfac21a..7487de1 100644 --- a/Sluift/core.lua +++ b/Sluift/core.lua @@ -1,11 +1,11 @@ --[[ - Copyright (c) 2013 Remko Tronçon + Copyright (c) 2013-2014 Remko Tronçon Licensed under the GNU General Public License. See the COPYING file for more information. --]] local sluift = select(1, ...) local _G = _G local pairs, ipairs, print, tostring, type, error, assert, next, rawset, xpcall, unpack, io = pairs, ipairs, print, tostring, type, error, assert, next, rawset, xpcall, unpack, io local setmetatable, getmetatable = setmetatable, getmetatable local string = require "string" @@ -741,20 +741,20 @@ register_help(Client.process_events) -- -- Register get_* and set_* convenience methods for some type of queries -- -- Example usages: -- client:get_software_version{to = 'alice@wonderland.lit'} -- client:set_command{to = 'alice@wonderland.lit', command = { type = 'execute', node = 'uptime' }} -- local get_set_shortcuts = { - get = {'software_version', 'disco_items', 'xml', 'dom', 'vcard'}, - set = {'command'} + get = {'software_version', 'disco_items', 'xml', 'dom', 'vcard', 'mam'}, + set = {'command', 'mam'} } for query_action, query_types in pairs(get_set_shortcuts) do for _, query_type in ipairs(query_types) do _H = { "Sends a `" .. query_action .. "` query of type `" .. query_type .. "`.\n" .. "Apart from the options below, all top level elements of `" .. query_type .. "` can be passed.", parameters = { "self" }, options = remove_help_parameters({"query", "type"}, extra_help["Client.get"].options), } |
Swift