summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoger Planas <roger.planas@isode.com>2017-10-26 11:38:37 (GMT)
committerRoger Planas <roger.planas@isode.com>2017-10-26 11:39:23 (GMT)
commited25c7d2fe46dca4edecd359755b15e16620056e (patch)
tree8c6116500b1c8c49e4f0d90b7e569e1b72a9b6c1
parent867ee9a1590f340ef57cebc15ab5ddb8a08f2a53 (diff)
downloadswift-ed25c7d2fe46dca4edecd359755b15e16620056e.zip
swift-ed25c7d2fe46dca4edecd359755b15e16620056e.tar.bz2
Sluift: Add shortcut for get disco_info to components
disco_info shortcut was available to clients but not to components. This patch addresses this. Test-information: Used component:get_disco_info and data is retrieved successfully. Change-Id: Ie8d80e3180ca400e5694fd581f60f08511e36ca4
-rw-r--r--Sluift/core.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/Sluift/core.lua b/Sluift/core.lua
index 89c96ba..daa8636 100644
--- a/Sluift/core.lua
+++ b/Sluift/core.lua
@@ -961,7 +961,7 @@ register_help(Component.process_events)
-- component:set_command{to = 'alice@wonderland.lit', command = { type = 'execute', node = 'uptime' }}
--
local get_set_shortcuts = {
- get = {'software_version', 'disco_items', 'xml', 'dom', 'vcard'},
+ get = {'software_version', 'disco_items', 'disco_info', 'xml', 'dom', 'vcard'},
set = {'command', 'vcard'}
}
for query_action, query_types in pairs(get_set_shortcuts) do